extend-exclude = [
# Excluded (run with the other AC files in its own separate ruff job in pre-commit)
"test_clinic.py",
+ # 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",
"test_lib2to3/data/bom.py",
"test_lib2to3/data/crlf.py",
"test_lib2to3/data/different_encoding.py",
-# This file is marked as binary in the CVS, to prevent MacCVS from recoding it.
-
import unittest
class PEP3120Test(unittest.TestCase):
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)