Skip to content

Commit

Permalink
Fix #154: Update test to check the release level of the running Pytho…
Browse files Browse the repository at this point in the history
…n interpreter.
  • Loading branch information
vsajip committed Sep 23, 2021
1 parent b6b6662 commit 55b4b17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_markers.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def test_interpret(self):
if sys.version_info < (3, 10):
self.assertTrue(interpret('python_version < "3.10"'))
self.assertFalse(interpret('python_version >= "3.10"'))
if sys.version_info >= (3, 10):
if sys.version_info >= (3, 10) and sys.version_info.releaselevel == 'final':
self.assertFalse(interpret('python_version < "3.10"'))
self.assertTrue(interpret('python_version >= "3.10"'))
self.assertTrue(interpret("'%s' in os_name" % os_name))
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
#envlist = py26, py27, py32, py33, py34, pypy
envlist = py27, py36, py37, py38, py39, pypy, pypy3
envlist = py27, py36, py37, py38, py39, py310, pypy, pypy3

[testenv]
setenv =
Expand Down

0 comments on commit 55b4b17

Please sign in to comment.