Skip to content

Commit 9726586

Browse files
committed
test_thread: skip cpython tests for <3.5
1 parent 60fc2fb commit 9726586

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

graalpython/com.oracle.graal.python.test/src/tests/test_thread.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
# SOFTWARE.
3939
import random
4040
import re
41+
import sys
4142

4243
try:
4344
import threading
@@ -334,11 +335,13 @@ def test_constructor(self):
334335
lock = self.locktype()
335336
del lock
336337

338+
@unittest.skipIf(sys.implementation.name == 'cpython' and sys.version_info[0:2] < (3, 5), "skipping for cPython versions < 3.5")
337339
def test_repr(self):
338340
lock = self.locktype()
339341
self.assertRegexpMatches(repr(lock), "<unlocked .* object (.*)?at .*>")
340342
del lock
341343

344+
@unittest.skipIf(sys.implementation.name == 'cpython' and sys.version_info[0:2] < (3, 5), "skipping for cPython versions < 3.5")
342345
def test_locked_repr(self):
343346
lock = self.locktype()
344347
lock.acquire()

0 commit comments

Comments
 (0)