|
29 | 29 | import unittest
|
30 | 30 | import urllib.parse
|
31 | 31 |
|
32 |
| -from test.support import SHORT_TIMEOUT, bigmemtest, check_disallow_instantiation |
| 32 | +from test.support import ( |
| 33 | + SHORT_TIMEOUT, bigmemtest, 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
|
@@ -658,6 +661,7 @@ def test_open_with_path_like_object(self):
|
658 | 661 |
|
659 | 662 | @unittest.skipIf(sys.platform == "win32", "skipped on Windows")
|
660 | 663 | @unittest.skipIf(sys.platform == "darwin", "skipped on macOS")
|
| 664 | + @unittest.skipIf(is_emscripten or is_wasi, "not supported on Emscripten/WASI") |
661 | 665 | @unittest.skipUnless(TESTFN_UNDECODABLE, "only works if there are undecodable paths")
|
662 | 666 | def test_open_with_undecodable_path(self):
|
663 | 667 | path = TESTFN_UNDECODABLE
|
@@ -703,6 +707,7 @@ def test_open_uri_readonly(self):
|
703 | 707 |
|
704 | 708 | @unittest.skipIf(sys.platform == "win32", "skipped on Windows")
|
705 | 709 | @unittest.skipIf(sys.platform == "darwin", "skipped on macOS")
|
| 710 | + @unittest.skipIf(is_emscripten or is_wasi, "not supported on Emscripten/WASI") |
706 | 711 | @unittest.skipUnless(TESTFN_UNDECODABLE, "only works if there are undecodable paths")
|
707 | 712 | def test_open_undecodable_uri(self):
|
708 | 713 | path = TESTFN_UNDECODABLE
|
@@ -1458,6 +1463,7 @@ def test_blob_closed_db_read(self):
|
1458 | 1463 | blob.read)
|
1459 | 1464 |
|
1460 | 1465 |
|
| 1466 | +@threading_helper.requires_working_threading() |
1461 | 1467 | class ThreadTests(unittest.TestCase):
|
1462 | 1468 | def setUp(self):
|
1463 | 1469 | self.con = sqlite.connect(":memory:")
|
@@ -1822,6 +1828,7 @@ def test_on_conflict_replace(self):
|
1822 | 1828 | self.assertEqual(self.cu.fetchall(), [('Very different data!', 'foo')])
|
1823 | 1829 |
|
1824 | 1830 |
|
| 1831 | +@requires_subprocess() |
1825 | 1832 | class MultiprocessTests(unittest.TestCase):
|
1826 | 1833 | CONNECTION_TIMEOUT = SHORT_TIMEOUT / 1000. # Defaults to 30 ms
|
1827 | 1834 |
|
|
0 commit comments