We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79bc2f3 commit 81e7cd8Copy full SHA for 81e7cd8
bpython/test/test_interpreter.py
@@ -40,7 +40,19 @@ def test_syntaxerror(self):
40
41
i.runsource("1.1.1.1")
42
43
- if pypy:
+ if sys.version_info[:2] >= (3, 8):
44
+ expected = (
45
+ " File "
46
+ + green('"<input>"')
47
+ + ", line "
48
+ + bold(magenta("1"))
49
+ + "\n 1.1.1.1\n ^\n"
50
+ + bold(red("SyntaxError"))
51
+ + ": "
52
+ + cyan("invalid syntax")
53
+ + "\n"
54
+ )
55
+ elif pypy:
56
expected = (
57
" File "
58
+ green('"<input>"')
0 commit comments