FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

test added in gh-104067 has an fstring with an invalid escape sequence · Issue #105784 · python/cpython · GitHub

/ cpython Public

test added in gh-104067 has an fstring with an invalid escape sequence #105784

Description

Bug report

In response to #104049, a fix and a new test were added in #104067 and related PRs. The test in test_httpserver.py uses an fstring with an escape sequence, but does not use r:

f'listing for {self.base_url}/\?x=123'

I think the code (in two places) should be include an r: fr'listing for ...

On PyPy this is causing the test___all__.py test to fail, since it emits a warning when compiling the *.py to *.pyc. I am not sure why CPython is not seeing a similar problem. Perhaps compileall is run first? Or the warning filter captures the compilation as well as the import?

Your environment

  • CPython versions tested on: PyPy3.9 HEAD using stdlib 3.9.17
  • Operating system and architecture: any

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


    Back | FazBrowse Home | New Git URL