mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
[3.11] gh-108303: Move tokenize-related data to Lib/test/tokenizedata (GH-109265) (#109678)
* gh-108303: Move tokenize-related data to Lib/test/tokenizedata (GH-109265) (cherry picked from commit1110c5bc82
) * gh-108303: Add `Lib/test/tokenizedata` to `TESTSUBDIRS` (#109314) (cherry picked from commit42ab2cbd7b
) --------- Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
This commit is contained in:
parent
37b261799b
commit
8d99502aac
18 changed files with 40 additions and 24 deletions
|
@ -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'')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue