gh-108303: Move tokenize-related data to Lib/test/tokenizedata (GH-109265)

This commit is contained in:
Nikita Sobolev 2023-09-12 09:37:42 +03:00 committed by GitHub
parent 8c813faf86
commit 1110c5bc82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 40 additions and 25 deletions

View file

@ -25,7 +25,7 @@ class ReindentTests(unittest.TestCase):
self.assertGreater(err, b'')
def test_reindent_file_with_bad_encoding(self):
bad_coding_path = findfile('bad_coding.py')
bad_coding_path = findfile('bad_coding.py', subdir='tokenizedata')
rc, out, err = assert_python_ok(self.script, '-r', bad_coding_path)
self.assertEqual(out, b'')
self.assertNotEqual(err, b'')