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

Commite33828e

Browse files
committed
Remove unnecessary version checks
1 parent445aff0 commite33828e

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

‎bpython/test/test_inspection.py‎

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
frombpython.test.fodderimportencoding_utf8
1212

1313
pypy="PyPy"insys.version
14-
_is_py311=sys.version_info[:2]>= (3,11)
1514

1615
try:
1716
importnumpy
@@ -127,14 +126,7 @@ def test_getfuncprops_print(self):
127126
self.assertIn("file",props.argspec.kwonly)
128127
self.assertIn("flush",props.argspec.kwonly)
129128
self.assertIn("sep",props.argspec.kwonly)
130-
if_is_py311:
131-
self.assertEqual(
132-
repr(props.argspec.kwonly_defaults["file"]),"None"
133-
)
134-
else:
135-
self.assertEqual(
136-
repr(props.argspec.kwonly_defaults["file"]),"sys.stdout"
137-
)
129+
self.assertEqual(repr(props.argspec.kwonly_defaults["file"]),"None")
138130
self.assertEqual(repr(props.argspec.kwonly_defaults["flush"]),"False")
139131

140132
@unittest.skipUnless(

‎bpython/test/test_simpleeval.py‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ def test_matches_stdlib(self):
2020
self.assertMatchesStdlib("{(1,): [2,3,{}]}")
2121
self.assertMatchesStdlib("{1, 2}")
2222

23-
@unittest.skipUnless(
24-
sys.version_info[:2]>= (3,9),"Only Python3.9 evaluates set()"
25-
)
2623
deftest_matches_stdlib_set_literal(self):
2724
"""set() is evaluated"""
2825
self.assertMatchesStdlib("set()")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp