typing tests: test_overload_on_compiled_functions() may not work on alternative Python implementations
#98713
Labels
Bug report
A few weeks ago, the
typing_extensionsbackport library received a bug report thattest_overload_on_compiled_functions(), a recently added test, failed when run on PyPy: python/typing_extensions#83. This is due to the fact thatbuiltins.sum()andbuiltins.print()are not compiled functions on PyPy.The same test exists in the CPython test suite (the test was ported over to
typing_extensionsin python/typing_extensions#73 after being added to the CPython test suite in #96479):cpython/Lib/test/test_typing.py
Lines 4638 to 4650 in de69816
I think the test should probably be marked with the
@test.support.cpython_onlydecorator in the CPython test suite.(Cc. @sobolevn, who added the test.)
The text was updated successfully, but these errors were encountered: