8000 gh-108303: Move tokenize-related data to `Lib/test/tokenizedata` by sobolevn · Pull Request #109265 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-108303: Move tokenize-related data to Lib/test/tokenizedata #109265

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 12, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Lib/test/test_tokenize.py
Co-authored-by: Victor Stinner <vstinner@python.org>
  • Loading branch information
sobolevn and vstinner authored Sep 11, 2023
commit 8660ad4d519451f8b5d6a880852f92e5ff2653ba
2 changes: 1 addition & 1 deletion Lib/test/test_tokenize.py
Original file line number Diff line number Diff line change
Expand Up @@ -1850,7 +1850,7 @@ def test_random_files(self):

import glob, random
fn = support.findfile("tokenize_tests.txt", subdir='tokenizedata')
tempdir = os.path.dirname(os.path.dirname(fn)) or os.curdir
tempdir = os.path.dirname(__file__) or os.curdir
testfiles = glob.glob(os.path.join(glob.escape(tempdir), "test*.py"))

# Tokenize is broken on test_pep3131.py because regular expressions are
Expand Down
0