Skip to content

Commit b2d82d6

Browse files
committed
Add more comments for test case
1 parent 0ad3ec2 commit b2d82d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_multiple_interpreters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,12 +236,12 @@ def test():
236236
)
237237
# The first ones are static types shared between interpreters.
238238
assert objects[:-2] == expected[:-2], (
239-
f"Expected static objects {{expected!r}} ({{len(expected)}}), got {{objects!r}} ({{len(objects)}})."
239+
f"Expected static objects {{expected!r[:-2]}}, got {{objects[:-2]!r}}."
240240
)
241241
# The last two are heap types created per-interpreter.
242242
# The expected objects are dynamically imported from `collections`.
243243
assert objects[-2:] == expected[-2:], (
244-
f"Expected heap objects {{expected!r}} ({{len(expected)}}), got {{objects!r}} ({{len(objects)}})."
244+
f"Expected heap objects {{expected[-2:]!r}}, got {{objects[-2:]!r}}."
245245
)
246246
247247
assert hasattr(m, 'MyClass'), "Module missing MyClass"

0 commit comments

Comments
 (0)