Thanks to visit codestin.com
Credit goes to github.com

Skip to content

test_fstring.py:1655: SyntaxWarning: invalid escape sequence #129693

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

Closed
utkonos opened this issue Feb 5, 2025 · 1 comment
Closed

test_fstring.py:1655: SyntaxWarning: invalid escape sequence #129693

utkonos opened this issue Feb 5, 2025 · 1 comment
Labels
tests Tests in the Lib/test dir topic-parser type-bug An unexpected behavior, bug, or error

Comments

@utkonos
Copy link
Contributor

utkonos commented Feb 5, 2025

Bug report

Bug description:

This is a failure during the set of tests performed during build of 3.13.2:

    default: 0:00:22 load avg: 1.70 [18/44] test_fstring
    default: /root/Python-3.13.2/Lib/test/test_fstring.py:1655: SyntaxWarning: invalid escape sequence '\N'
    default:   self.assertEqual(f'{b"\N{OX}"=}', 'b"\\N{OX}"=b\'\\\\N{OX}\'')

CPython versions tested on:

3.13

Operating systems tested on:

Linux

Linked PRs

@utkonos utkonos added the type-bug An unexpected behavior, bug, or error label Feb 5, 2025
@tomasr8
Copy link
Member

tomasr8 commented Feb 5, 2025

Added in #128399 (cc @pablogsal) We could simply suppress the warning for that line.

@tomasr8 tomasr8 added tests Tests in the Lib/test dir topic-parser labels Feb 5, 2025
pablogsal pushed a commit that referenced this issue Feb 13, 2025
Suppress SyntaxWarning in test_fstring
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Feb 13, 2025
…29830)

Suppress SyntaxWarning in test_fstring
(cherry picked from commit 2dd0188)

Co-authored-by: Tomas R. <[email protected]>
pablogsal pushed a commit that referenced this issue Feb 13, 2025
#130068)

gh-129693: Suppress `SyntaxWarning` in test_fstring (GH-129830)

Suppress SyntaxWarning in test_fstring
(cherry picked from commit 2dd0188)

Co-authored-by: Tomas R <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Tests in the Lib/test dir topic-parser type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

3 participants