Skip to content

Commit

Permalink
pythongh-108303: Fix and move badsyntax_pep3120.py (python#109513)
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
  • Loading branch information
2 people authored and csm10495 committed Sep 28, 2023
1 parent 7c24e26 commit 3394750
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Lib/test/.ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ select = [
"F811", # Redefinition of unused variable (useful for finding test methods with the same name)
]
extend-exclude = [
# Excluded (these aren't actually executed, they're just "data files")
"tokenizedata/*.py",
# Failed to lint
"badsyntax_pep3120.py",
"encoded_modules/module_iso_8859_1.py",
"encoded_modules/module_koi8_r.py",
# Failed to parse
"badsyntax_3131.py",
"support/socket_helper.py",
"test_fstring.py",
# TODO Fix: F811 Redefinition of unused name
Expand Down
4 changes: 1 addition & 3 deletions Lib/test/test_utf8source.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# This file is marked as binary in the CVS, to prevent MacCVS from recoding it.

import unittest

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

def test_badsyntax(self):
try:
import test.badsyntax_pep3120
import test.tokenizedata.badsyntax_pep3120
except SyntaxError as msg:
msg = str(msg).lower()
self.assertTrue('utf-8' in msg)
Expand Down
File renamed without changes.

0 comments on commit 3394750

Please sign in to comment.