Skip to content

Commit a102130

Browse files
committed
unittests test_sched skip if threads not enabled
1 parent 0f59808 commit a102130

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

graalpython/lib-python/3/test/test_sched.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ def test_enterabs(self):
5858
scheduler.run()
5959
self.assertEqual(l, [0.01, 0.02, 0.03, 0.04, 0.05])
6060

61+
@unittest.skipIfGraalPythonWitoutThreads
6162
@unittest.skipUnless(threading, 'Threading required for this test.')
6263
def test_enter_concurrent(self):
6364
q = queue.Queue()
@@ -113,6 +114,7 @@ def test_cancel(self):
113114
scheduler.run()
114115
self.assertEqual(l, [0.02, 0.03, 0.04])
115116

117+
@unittest.skipIfGraalPythonWitoutThreads
116118
@unittest.skipUnless(threading, 'Threading required for this test.')
117119
def test_cancel_concurrent(self):
118120
q = queue.Queue()

0 commit comments

Comments
 (0)