Skip to content

Commit

Permalink
Skip test for non-final Python versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
vsajip committed Jul 19, 2023
1 parent ff48e09 commit 124108a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_markers.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ def test_interpret(self):
platform_python_implementation = python_implementation()

self.assertTrue(interpret("sys_platform == '%s'" % sys_platform))
self.assertTrue(interpret(
"sys_platform == '%s' and python_full_version == '%s'" %
(sys_platform, version)))
if sys.version_info[3] == 'final':
self.assertTrue(interpret(
"sys_platform == '%s' and python_full_version == '%s'" %
(sys_platform, version)))
self.assertTrue(interpret("'%s' == sys_platform" % sys_platform))
self.assertTrue(interpret('os_name == "%s"' % os_name))
self.assertTrue(interpret(
Expand Down

0 comments on commit 124108a

Please sign in to comment.