Skip to content

AssertionError in test_refcount with Python 3.14 #511

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
befeleme opened this issue May 29, 2025 · 5 comments
Closed

AssertionError in test_refcount with Python 3.14 #511

befeleme opened this issue May 29, 2025 · 5 comments

Comments

@befeleme
Copy link
Contributor

Python 3.14 optimized handling recounts which is likely causing test failures of numexpr: https://docs.python.org/3.14/whatsnew/3.14.html#whatsnew314-refcount

While testing with Python 3.14.0b2 in Fedora Linux 43 I see these two failures:

======================================================================
FAIL: test_refcount (numexpr.tests.test_numexpr.test_numexpr.test_refcount)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-numexpr-2.10.2-build/numexpr-2.10.2/build/lib.linux-x86_64-cpython-314/numexpr/tests/test_numexpr.py", line 317, in test_refcount
    assert sys.getrefcount(a) == 2
           ^^^^^^^^^^^^^^^^^^^^^^^
AssertionError

======================================================================
FAIL: test_refcount (numexpr.tests.test_numexpr.test_numexpr2.test_refcount)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python-numexpr-2.10.2-build/numexpr-2.10.2/build/lib.linux-x86_64-cpython-314/numexpr/tests/test_numexpr.py", line 317, in test_refcount
    assert sys.getrefcount(a) == 2
           ^^^^^^^^^^^^^^^^^^^^^^^
AssertionError
@27rabbitlt
Copy link
Contributor

27rabbitlt commented May 29, 2025 via email

@27rabbitlt
Copy link
Contributor

27rabbitlt commented Jun 5, 2025

I'm still stuggling with python 3.140b2 itself. I'm using MacOS and after downloading, pip doesn't work and reports SSL Certificate related error. And when I tried to run Install Certificate.command it gives the very same error:

Could not fetch URL https://pypi.org/simple/certifi/: There was a problem confirming the ssl certificate: 
HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/certifi/ (Caused by 
SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer
certificate (_ssl.c:1077)'))) - skipping

Any idea what should I do now T-T

@FrancescAlted
Copy link
Contributor

Thanks for your efforts @27rabbitlt . My impression is that, although this test could have been useful in the past (mainly for debugging purposes), at this point we can comment it out if it is creating issues with PyPy and recent versions of Python.

@FrancescAlted
Copy link
Contributor

So, I commented this out. In case you feel it can be fixed in some other way, tell me (although I can't think of a reason why we are gonna need it in the future).

@27rabbitlt
Copy link
Contributor

27rabbitlt commented Jun 9, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants