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

test_encoding_warnings failing on pypy #114

Closed
jaraco opened this issue Mar 13, 2024 · 0 comments
Closed

test_encoding_warnings failing on pypy #114

jaraco opened this issue Mar 13, 2024 · 0 comments

Comments

@jaraco
Copy link
Owner

jaraco commented Mar 13, 2024

Running the tests on pypy results in this failure:

________________________________________________________ TestPath.test_encoding_warnings _________________________________________________________

self = <tests.test_path.TestPath testMethod=test_encoding_warnings>
alpharep = <zipp.CompleteDirs file=<_io.BytesIO object at 0x0000000128eaa728> mode='w'>

    @unittest.skipIf(
        not getattr(sys.flags, 'warn_default_encoding', 0),
        "Requires warn_default_encoding",
    )
    @pass_alpharep
    def test_encoding_warnings(self, alpharep):
        """EncodingWarning must blame the read_text and open calls."""
        assert sys.flags.warn_default_encoding
        root = zipp.Path(alpharep)
        with self.assertWarns(EncodingWarning) as wc:
            root.joinpath("a.txt").read_text()
>       assert __file__ == wc.filename
E       AssertionError: assert '/Users/jarac.../test_path.py' == '/Users/jarac...p/__init__.py'
E         
E         - /Users/jaraco/code/jaraco/zipp/zipp/__init__.py
E         ?                                ^^^^ ^^^^^  ^
E         + /Users/jaraco/code/jaraco/zipp/tests/test_path.py
E         ?                                ^^^^^ ^^^  ^^^^

tests/test_path.py:193: AssertionError

The last time these tests passed was about 6 months ago.

@jaraco jaraco closed this as completed in 4cceb49 Mar 13, 2024
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

1 participant