[issue28649] refleak in typing.py
Yury Selivanov
report at bugs.python.org
Wed Nov 9 13:11:15 EST 2016
Yury Selivanov added the comment:
Wow. In default CPython branch, with no modifications, test_typing.py simply crashes in debug mode:
yury at ysmbp ~/dev/py/cpython $ ./python.exe -m test -R3:3 test_typing
Run tests sequentially
0:00:00 [1/1] test_typing
beginning 6 repetitions
123456
.test test_typing failed -- Traceback (most recent call last):
File "/Users/yury/dev/py/cpython/Lib/test/test_typing.py", line 739, in test_generic_forvard_ref
self.assertEqual(get_type_hints(foobar, globals(), locals()), {'x': List[List[T]]})
AssertionError: {'x': typing.List[typing.List[~T]]} != {'x': typing.List[typing.List[~T]]}
{'x': typing.List[typing.List[~T]]}
test_typing failed
1 test failed:
test_typing
Total duration: 1 sec
Tests result: FAILURE
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28649>
_______________________________________
More information about the Python-bugs-list
mailing list