Skip to content
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

PyPy3.11 test fixes #1929

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

PyPy3.11 test fixes #1929

wants to merge 2 commits into from

Conversation

mgorny
Copy link
Contributor

@mgorny mgorny commented Feb 18, 2025

Fix a regex in a single test, and add pypy311 to tox.ini targets using pytrace only.

Fix the regex in `test_parser.py::PythonParserTest::test_not_python`
to account for the possibility of code being wrapped in double quotes
rather than single quotes, to fix the test on PyPy3.11.
@nedbat
Copy link
Owner

nedbat commented Feb 18, 2025

Thanks. On my Mac, I also see an error for test SigtermTest.test_sigterm_still_runs:

>       assert out == "START\nSIGTERM\nEND\n"
E       assert 'START\nSIGTERM\nProcess Process-1:\nTraceback (most recent call last):\n  File "/usr/local/pyenv/pyenv/versions/pypy3.11-7.3.18/lib/pypy3.11/multiprocessing/process.py", line 314, in _bootstrap\n    self.run()\n  File "/usr/local/pyenv/pyenv/versions/pypy3.11-7.3.18/lib/pypy3.11/multiprocessing/process.py", line 108, in run\n    self._target(*self._args, **self._kwargs)\n  File "/private/var/folders/6j/khn0mcrj35d1k3yylpl8zl080000gn/T/pytest-of-ned/pytest-37/t2/handler.py", line 12, in subproc\n    time.sleep(.1)\nOSError: [Errno -1] Unknown error: -1\n' == 'START\nSIGTERM\nEND\n'
E
E           START
E           SIGTERM
E         - END
E         + Process Process-1:
E         + Traceback (most recent call last):
E         +   File "/usr/local/pyenv/pyenv/versions/pypy3.11-7.3.18/lib/pypy3.11/multiprocessing/process.py", line 314, in _bootstrap
E         +     self.run()
E         +   File "/usr/local/pyenv/pyenv/versions/pypy3.11-7.3.18/lib/pypy3.11/multiprocessing/process.py", line 108, in run
E         +     self._target(*self._args, **self._kwargs)
E         +   File "/private/var/folders/6j/khn0mcrj35d1k3yylpl8zl080000gn/T/pytest-of-ned/pytest-37/t2/handler.py", line 12, in subproc
E         +     time.sleep(.1)
E         + OSError: [Errno -1] Unknown error: -1

/Users/ned/coverage/trunk/tests/test_concurrency.py:809: AssertionError

@nedbat
Copy link
Owner

nedbat commented Feb 18, 2025

Here's a failure on GitHub Actions: https://github.com/nedbat/coveragepy/actions/runs/13390614273

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

Successfully merging this pull request may close these issues.

2 participants