Skip to content

Commit ea819bc

Browse files
committed
Fix test skip
1 parent 7d0e709 commit ea819bc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Lib/test/test_capi/test_emscripten.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
import unittest
22
from test.support import is_emscripten
33

4-
unittest.skipUnless(is_emscripten, "only available on Emscripten")
4+
if not is_emscripten:
5+
raise unittest.SkipTest("Emscripten-only test")
56

7+
from _testinternalcapi import emscripten_set_up_async_input_device
68
from pathlib import Path
79

810

911
class EmscriptenAsyncInputDeviceTest(unittest.TestCase):
1012
def test_emscripten_async_input_device(self):
11-
from _testinternalcapi import emscripten_set_up_async_input_device
1213
supported = emscripten_set_up_async_input_device()
1314
p = Path("/dev/blah")
1415
self.addCleanup(p.unlink)

0 commit comments

Comments
 (0)