Skip to content

Commit e33828e

Browse files
committed
Remove unnecessary version checks
1 parent 445aff0 commit e33828e

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
from bpython.test.fodder import encoding_utf8
1212

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

1615
try:
1716
import numpy
@@ -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
def test_matches_stdlib_set_literal(self):
2724
"""set() is evaluated"""
2825
self.assertMatchesStdlib("set()")

0 commit comments

Comments
 (0)