You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
typing tests: test_overload_on_compiled_functions() may not work on alternative Python implementations #98713
A few weeks ago, the typing_extensions backport library received a bug report that test_overload_on_compiled_functions(), a recently added test, failed when run on PyPy: python/typing_extensions#83. This is due to the fact that builtins.sum() and builtins.print() are not compiled functions on PyPy.
The same test exists in the CPython test suite (the test was ported over to typing_extensions in python/typing_extensions#73 after being added to the CPython test suite in #96479):
Activity
sobolevn commentedon Oct 26, 2022
Yes, I will send a PR for that!
pythongh-98713: Use `@cpython_only` for a test that fails on PyPy
gh-98713: Use `@cpython_only` for a test that fails on PyPy (#98714)
pythongh-98713: Use `@cpython_only` for a test that fails on PyPy (py…
gh-98713: Use `@cpython_only` for a test that fails on PyPy (GH-98714)
AlexWaygood commentedon Oct 26, 2022
Thanks for the fix @sobolevn!