Skip to content

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

@nedbat nedbat merged commit a311706 into nedbat:master Feb 20, 2025
32 checks passed
@mgorny mgorny deleted the pypy311 branch February 21, 2025 04:29
@mgorny
Copy link
Contributor Author

mgorny commented Feb 21, 2025

Thanks!

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