8000 fixed test · python/cpython@0ef4f23 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0ef4f23

Browse files
committed
fixed test
1 parent a36418c commit 0ef4f23

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Lib/test/test_tokenize.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from test.test_grammar import (VALID_UNDERSCORE_LITERALS,
1212
INVALID_UNDERSCORE_LITERALS)
1313
from test.support import os_helper
14-
from test.support.script_helper import run_test_script, make_script
14+
from test.support.script_helper import run_test_script, make_script, run_python_until_end
1515
import os
1616
import token
1717

@@ -1479,7 +1479,8 @@ def test_invalid_character_in_fstring_middle(self):
14791479
filename = os.path.join(temp_dir, "script.py")
14801480
with open(filename, 'wb') as file:
14811481
file.write(script)
1482-
run_test_script(filename)
1482+
rs, _ = run_python_until_end(filename)
1483+
self.assertIn(b"SyntaxError", rs.err)
14831484

14841485

14851486
class UntokenizeTest(TestCase):

0 commit comments

Comments
 (0)
0