Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7c10340

Browse files
committed
Really fix tests with Python 3.10.1
1 parent4449846 commit7c10340

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)

[8]ページ先頭

©2009-2025 Movatter.jp