|
29 | 29 | import unittest
|
30 | 30 | import urllib.parse
|
31 | 31 |
|
32 |
| -from test.support import SHORT_TIMEOUT, check_disallow_instantiation |
| 32 | +from test.support import ( |
| 33 | + SHORT_TIMEOUT, check_disallow_instantiation, requires_subprocess, |
| 34 | + is_emscripten, is_wasi |
| 35 | +) |
33 | 36 | from test.support import threading_helper
|
34 | 37 | from _testcapi import INT_MAX, ULLONG_MAX
|
35 | 38 | from os import SEEK_SET, SEEK_CUR, SEEK_END
|
@@ -653,6 +656,7 @@ def test_open_with_path_like_object(self):
|
653 | 656 |
|
654 | 657 | @unittest.skipIf(sys.platform == "win32", "skipped on Windows")
|
655 | 658 | @unittest.skipIf(sys.platform == "darwin", "skipped on macOS")
|
| 659 | + @unittest.skipIf(is_emscripten or is_wasi, "not supported on Emscripten/WASI") |
656 | 660 | @unittest.skipUnless(TESTFN_UNDECODABLE, "only works if there are undecodable paths")
|
657 | 661 | def test_open_with_undecodable_path(self):
|
658 | 662 | path = TESTFN_UNDECODABLE
|
@@ -698,6 +702,7 @@ def test_open_uri_readonly(self):
|
698 | 702 |
|
699 | 703 | @unittest.skipIf(sys.platform == "win32", "skipped on Windows")
|
700 | 704 | @unittest.skipIf(sys.platform == "darwin", "skipped on macOS")
|
| 705 | + @unittest.skipIf(is_emscripten or is_wasi, "not supported on Emscripten/WASI") |
701 | 706 | @unittest.skipUnless(TESTFN_UNDECODABLE, "only works if there are undecodable paths")
|
702 | 707 | def test_open_undecodable_uri(self):
|
703 | 708 | path = TESTFN_UNDECODABLE
|
@@ -1453,6 +1458,7 @@ def test_blob_closed_db_read(self):
|
1453 | 1458 | blob.read)
|
1454 | 1459 |
|
1455 | 1460 |
|
| 1461 | +@threading_helper.requires_working_threading() |
1456 | 1462 | class ThreadTests(unittest.TestCase):
|
1457 | 1463 | def setUp(self):
|
1458 | 1464 | self.con = sqlite.connect(":memory:")
|
@@ -1817,6 +1823,7 @@ def test_on_conflict_replace(self):
|
1817 | 1823 | self.assertEqual(self.cu.fetchall(), [('Very different data!', 'foo')])
|
1818 | 1824 |
|
1819 | 1825 |
|
| 1826 | +@requires_subprocess() |
1820 | 1827 | class MultiprocessTests(unittest.TestCase):
|
1821 | 1828 | CONNECTION_TIMEOUT = SHORT_TIMEOUT / 1000. # Defaults to 30 ms
|
1822 | 1829 |
|
|
0 commit comments