Run windows tests with -u all (#8134)

* Enable all test resources on windows

* Mark tests

* mark wmi test
This commit is contained in:
Shahar Naveh authored and GitHub committed 2026-06-22 16:46:53 +09:00
1 parent c6e254fbdc
commit 221d95cbbe
8 files changed
+9 -3

No files matched your search

+2 -1
View File
@@ -306,7 +306,8 @@ jobs:
skips: []
timeout: 60
- os: windows-2025
extra_test_args: [] # TODO: Enable '-u all'
extra_test_args:
- '-u all'
env_polluting_tests:
- test_set
skips: []
+1 -1
View File
@@ -11,7 +11,7 @@ class TestCP949Map(multibytecodec_support.TestBase_Mapping,
encoding = 'cp949'
mapfileurl = 'http://www.pythontest.net/unicode/CP949.TXT'
@unittest.expectedFailure # TODO: RUSTPYTHON; LookupError: unknown encoding: cp949
@unittest.expectedFailureIf(__import__("sys").platform in ("android", "darwin", "linux"), "TODO: RUSTPYTHON; LookupError: unknown encoding: cp949")
def test_mapping_file(self):
return super().test_mapping_file()
+1 -1
View File
@@ -27,7 +27,7 @@ class TestCP950Map(multibytecodec_support.TestBase_Mapping,
(b"\xFFxy", "replace", "\ufffdxy"),
)
@unittest.expectedFailure # TODO: RUSTPYTHON; LookupError: unknown encoding: cp950
@unittest.expectedFailureIf(__import__("sys").platform in ("android", "darwin", "linux"), "TODO: RUSTPYTHON; LookupError: unknown encoding: cp950")
def test_errorhandle(self):
return super().test_errorhandle()
+1
View File
@@ -2173,6 +2173,7 @@ if 1:
# Two string literals on the same line
self.check_roundtrip("'' ''")
@unittest.skipIf(support.is_resource_enabled("cpu") and __import__("sys").platform == "win32", "TODO: RUSTPYTHON; Timeout after 10 minutes")
def test_random_files(self):
# Test roundtrip on random python modules.
# pass the '-ucpu' option to process the full directory.
+1
View File
@@ -1094,6 +1094,7 @@ class EnsurePipTest(BaseTest):
f"**Subprocess Error**\n{err}"
)
@unittest.expectedFailureIfWindows("TODO: RUSTPYTHON; FileNotFoundError: [WinError 2] No such file or directory")
@requires_venv_with_pip()
@requires_resource('cpu')
def test_with_pip(self):
+1
View File
@@ -142,6 +142,7 @@ class WindowsConsoleIOTests(unittest.TestCase):
with ConIO('CONOUT$', 'w') as f:
self.assertEqual(f.write(b''), 0)
@unittest.expectedFailureIfWindows("TODO: RUSTPYTHON")
@requires_resource('console')
def test_write(self):
testcases = []
+1
View File
@@ -100,6 +100,7 @@ class MessageBeepTest(unittest.TestCase):
class PlaySoundTest(unittest.TestCase):
@unittest.expectedFailureIfWindows("TODO: RUSTPYTHON; TypeError: a bytes-like object is required, not 'str'")
def test_errors(self):
self.assertRaises(TypeError, winsound.PlaySound)
self.assertRaises(TypeError, winsound.PlaySound, "bad", "bad")
+1
View File
@@ -59,6 +59,7 @@ class WmiTests(unittest.TestCase):
with self.assertRaises(ValueError):
wmi_exec_query("not select, just in case someone tries something")
@unittest.skipIf(__import__("sys").platform == "win32", "TODO: RUSTPYTHON; Timeout after 10 minutes")
@support.requires_resource('cpu')
def test_wmi_query_overflow(self):
# Ensure very big queries fail