mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 03:04:38 +08:00
Run windows tests with -u all (#8134)
* Enable all test resources on windows * Mark tests * mark wmi test
This commit is contained in:
1 parent
9bb6ba83e5
commit
55b96f923a
8 files changed
+9
-3
No files matched your search
@@ -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: []
|
||||
|
||||
Vendored
+1
-1
@@ -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()
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -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()
|
||||
|
||||
|
||||
Vendored
+1
@@ -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.
|
||||
|
||||
Vendored
+1
@@ -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):
|
||||
|
||||
Vendored
+1
@@ -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 = []
|
||||
|
||||
Vendored
+1
@@ -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")
|
||||
|
||||
Vendored
+1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user