Skip to content

Commit 7c10340

Browse files
committed
Really fix tests with Python 3.10.1
1 parent 4449846 commit 7c10340

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

bpython/test/test_interpreter.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,19 @@ def test_syntaxerror(self):
3535

3636
i.runsource("1.1.1.1")
3737

38-
if (3, 10, 0) <= sys.version_info[:3] < (3, 10, 1):
38+
if (3, 10, 1) <= sys.version_info[:3]:
39+
expected = (
40+
" File "
41+
+ green('"<bpython-input-148>"')
42+
+ ", line "
43+
+ bold(magenta("1"))
44+
+ "\n 1.1.1.1\n ^^\n"
45+
+ bold(red("SyntaxError"))
46+
+ ": "
47+
+ cyan("invalid syntax")
48+
+ "\n"
49+
)
50+
elif (3, 10) <= sys.version_info[:2]:
3951
expected = (
4052
" File "
4153
+ green('"<bpython-input-148>"')

0 commit comments

Comments
 (0)