Skip to content

Commit f6de5a9

Browse files
committed
Simplify version check
Python 3 before 3.5 is no longer supported
1 parent c1f9699 commit f6de5a9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

bpython/test/test_autocomplete.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
from bpython._py3compat import py3
2222
from bpython.test import mock
2323

24-
is_py34 = sys.version_info[:2] >= (3, 4)
25-
if is_py34:
24+
if is_py3:
2625
glob_function = "glob.iglob"
2726
else:
2827
glob_function = "glob.glob"
@@ -430,7 +429,7 @@ def test_completions_starting_with_different_cases(self):
430429
)
431430
self.assertSetEqual(matches, set(["ade"]))
432431

433-
@unittest.skipUnless(is_py34, "asyncio required")
432+
@unittest.skipUnless(is_py3, "asyncio required")
434433
def test_issue_544(self):
435434
com = autocomplete.MultilineJediCompletion()
436435
code = "@asyncio.coroutine\ndef"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy