Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d858213

Browse files
committed
xxlimited_35 module now has the same name in repr in Py 3.11
See python/cpython@a87c9b5
1 parent 66aeb3f commit d858213

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

IPython/lib/tests/test_pretty.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,12 @@ def test_pprint_heap_allocated_type():
141141
Test that pprint works for heap allocated types.
142142
"""
143143
module_name = "xxlimited" if sys.version_info < (3, 10) else "xxlimited_35"
144+
expected_output = (
145+
"xxlimited.Null" if sys.version_info < (3, 11) else "xxlimited_35.Null"
146+
)
144147
xxlimited = pytest.importorskip(module_name)
145148
output = pretty.pretty(xxlimited.Null)
146-
assert output == "xxlimited.Null"
149+
assert output == expected_output
147150

148151

149152
def test_pprint_nomod():

0 commit comments

Comments
 (0)