From 124108a2d94156b494d8900a7c0cc9c2ed8bc03a Mon Sep 17 00:00:00 2001 From: Vinay Sajip Date: Wed, 19 Jul 2023 15:00:41 +0100 Subject: [PATCH] Skip test for non-final Python versions. --- tests/test_markers.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test_markers.py b/tests/test_markers.py index 71b65f0..eabcc19 100644 --- a/tests/test_markers.py +++ b/tests/test_markers.py @@ -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(