Skip to content

Lots of test failures with PyPy3.10 7.3.12 #859

@mgorny

Description

@mgorny

Describe the bug
When running the test suite with PyPy3.10 7.3.12, I get loads of test failures. The following bit seems to repeat a lot:

Traceback (most recent call last):
  File "/tmp/pyfakefs/pyfakefs/tests/fake_filesystem_test.py", line 1433, in test_alt_sep
    fake_os_module = fake_os.FakeOsModule(self.filesystem)
  File "/tmp/pyfakefs/pyfakefs/fake_os.py", line 1356, in wrapped
    return f(*args, **kwargs)
TypeError: object.__new__() takes exactly one argument (the type to instantiate)

Full log (1M): pypy310.txt

How To Reproduce

tox -e pypy310

Your environment
Please run the following in the environment where the problem happened and
paste the output.

$ python -c "import platform; print(platform.platform())"
Linux-6.3.11-gentoo-dist-x86_64-AMD_Ryzen_5_3600_6-Core_Processor-with-glibc2.37
$ python -c "import sys; print('Python', sys.version)"
Python 3.10.12 (af44d0b8114cb82c40a07bb9ee9c1ca8a1b3688c, Jun 16 2023, 13:56:29)
[PyPy 7.3.12 with GCC 12.2.1 20230428]
$ python -c "from pyfakefs import __version__; print('pyfakefs', __version__)"
pyfakefs 5.3.dev0
$ python -c "import pytest; print('pytest', pytest.__version__)"
pytest 7.4.0

I've originally noticed it on 5.2.2, and tested on 78d173b to confirm.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions