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
EntryPoint's repr also fails with PyPy3 #102
Comments
In GitLab by @asottile on Dec 4, 2019, 17:11 mentioned in merge request !102 |
In GitLab by @jaraco on Dec 4, 2019, 21:43 Interesting - I'm 90% sure I did test it on pypy3, probably a newer version than you tested. |
In GitLab by @asottile on Dec 4, 2019, 21:52 here was the failure before my PR above: $ pypy3 --version
Python 3.6.9 (5da45ced70e5, Oct 09 2019, 19:12:54)
[PyPy 7.2.0 with GCC 6.2.0 20160901]
$ git checkout master
Switched to branch 'master'
Your branch is up to date with 'origin/master'.
$ tox -e pypy3
pypy3 develop-inst-noop: /tmp/importlib_metadata
pypy3 installed: cffi==1.13.0,greenlet==0.4.13,-e git+git@gitlab.com:python-devs/importlib_metadata@031c7f0e4994eea815b3101155f9f573d7d8f51e#egg=importlib_metadata,importlib-resources==1.0.2,more-itertools==8.0.0,packaging==19.2,pyparsing==2.4.5,readline==6.2.4.1,six==1.13.0,zipp==0.6.0
pypy3 run-test-pre: PYTHONHASHSEED='794755354'
pypy3 run-test: commands[0] | python -m unittest discover
.......................................E............
======================================================================
ERROR: test_repr (importlib_metadata.tests.test_main.TestEntryPoints)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/importlib_metadata/importlib_metadata/tests/test_main.py", line 211, in test_repr
assert 'EntryPoint' in repr(self.ep)
File "<string>", line 33, in __repr__
File "<string>", line 33, in __repr__
File "<string>", line 33, in __repr__
[Previous line repeated 877 more times]
File "/tmp/importlib_metadata/importlib_metadata/__init__.py", line 127, in __iter__
return iter((self.name, self))
RecursionError: maximum recursion depth exceeded
----------------------------------------------------------------------
Ran 52 tests in 0.540s
FAILED (errors=1)
ERROR: InvocationError for command /tmp/importlib_metadata/.tox/pypy3/bin/python -m unittest discover (exited with code 1)
___________________________________ summary ____________________________________
ERROR: pypy3: commands failed |
In GitLab by @jaraco on Dec 4, 2019, 22:36 Hmm. Okay, I have an older version of pypy3.
|
In GitLab by @jaraco on Dec 4, 2019, 22:40 Weirdly, even on PyPy 7.2, I don't encounter the failure:
|
In GitLab by @asottile on Dec 4, 2019, 22:46 try with |
In GitLab by @jaraco on Dec 4, 2019, 23:03 Same with |
In GitLab by @jaraco on Dec 4, 2019, 23:16 closed via merge request !102 |
In GitLab by @jaraco on Dec 4, 2019, 23:17 Fix released as v1.1.1. |
In GitLab by @asottile on Dec 4, 2019, 23:18 hmmmm weird! seems odd that it would be platform dependent 🤔 |
In GitLab by @sbraz on Dec 4, 2019, 23:19 FWIW I tested on Archlinux (PyPy 7.2.0 too) instead of Gentoo and I was still running into that recursion error:
Thanks for the fix! |
In GitLab by @sbraz on Dec 2, 2019, 11:52
Hi,
I see that #97 applied only to PyPy2 but I see failures with PyPy3 (7.2.0) too. Changing the compatibility function to make it apply to all PyPy versions fixed it for me.
The text was updated successfully, but these errors were encountered: