Thanks to visit codestin.com
Credit goes to github.com

Skip to content

We can now untokenize PEP 701 syntax, test_tokenize needs an update #111031

Closed
@sobolevn

Description

@sobolevn

Bug report

It states:

# TODO: Remove this once we can untokenize PEP 701 syntax
testfiles.remove(os.path.join(tempdir, "test_fstring.py"))

But, it works now 🎉
So, I guess we need to test f strings now, since it is an important part of Python's syntax.

Before:

» ./python.exe -m test test_tokenize
Using random seed 465266543
0:00:00 load avg: 2.63 Run 1 test sequentially
0:00:00 load avg: 2.63 [1/1] test_tokenize

== Tests result: SUCCESS ==

1 test OK.

Total duration: 857 ms
Total tests: run=107
Total test files: run=1/1
Result: SUCCESS

After:

» ./python.exe -m test test_tokenize
Using random seed 1341397923
0:00:00 load avg: 2.58 Run 1 test sequentially
0:00:00 load avg: 2.58 [1/1] test_tokenize

== Tests result: SUCCESS ==

1 test OK.

Total duration: 1.2 sec
Total tests: run=107
Total test files: run=1/1
Result: SUCCESS

Linked PRs

Metadata

Metadata

Assignees

Labels

interpreter-core(Objects, Python, Grammar, and Parser dirs)testsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions