Skip to content

Commit fdd4ad9

Browse files
committed
Fix tests with Python 3.10.1
1 parent 3c9e35d commit fdd4ad9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bpython/test/test_interpreter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def test_syntaxerror(self):
3535

3636
i.runsource("1.1.1.1")
3737

38-
if sys.version_info[:2] >= (3, 10):
38+
if (3, 10, 0) <= sys.version_info[:3] < (3, 10, 1):
3939
expected = (
4040
" File "
4141
+ green('"<bpython-input-148>"')
@@ -47,7 +47,7 @@ def test_syntaxerror(self):
4747
+ cyan("invalid syntax. Perhaps you forgot a comma?")
4848
+ "\n"
4949
)
50-
elif (3, 8) <= sys.version_info[:2] <= (3, 9):
50+
elif (3, 8) <= sys.version_info[:2]:
5151
expected = (
5252
" File "
5353
+ green('"<input>"')

0 commit comments

Comments
 (0)