8000 [3.11] gh-108303: Fix and move `badsyntax_pep3120.py` (GH-109513) · sobolevn/cpython@b248118 · GitHub
[go: up one dir, main page]

Skip to content

Commit b248118

Browse files
committed
[3.11] pythongh-108303: Fix and move badsyntax_pep3120.py (pythonGH-109513)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>. (cherry picked from commit 4dd47c6) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
1 parent f45ef5e commit b248118

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

Lib/test/.ruff.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ select = [
33
"F811", # Redefinition of unused variable (useful for finding test methods with the same name)
44
]
55
extend-exclude = [
6+
# Excluded (these aren't actually executed, they're just "data files")
7+
"tokenizedata/*.py",
68
# Failed to lint
7-
"badsyntax_pep3120.py",
89
"encoded_modules/module_iso_8859_1.py",
910
"encoded_modules/module_koi8_r.py",
1011
"test_source_encoding.py",
1112
# Failed to parse
12-
"badsyntax_3131.py",
1313
"test_fstring.py",
1414
# TODO Fix: F811 Redefinition of unused name
1515
"test_buffer.py",

Lib/test/test_utf8source.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# This file is marked as binary in the CVS, to prevent MacCVS from recoding it.
2-
31
import unittest
42

53
class PEP3120Test(unittest.TestCase):
@@ -16,7 +14,7 @@ def test_pep3120(self):
1614

1715
def test_badsyntax(self):
1816
try:
19-
import test.badsyntax_pep3120
17+
import test.tokenizedata.badsyntax_pep3120
2018
except SyntaxError as msg:
2119
msg = str(msg).lower()
2220
self.assertTrue('utf-8' in msg)

0 commit comments

Comments
 (0)
0