Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite32523c

Browse files
committed
turn a few more windows tests on
1 parentbad1c6f commite32523c

File tree

4 files changed

+23
-9
lines changed

4 files changed

+23
-9
lines changed

‎.github/workflows/ci.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -235,22 +235,13 @@ jobs:
235235
name:run cpython platform-dependent tests (windows partial - fixme)
236236
run:
237237
target/release/rustpython -m test -j 1 -u all --slowest --fail-env-changed -v -x ${{ env.PLATFORM_INDEPENDENT_TESTS }}
238-
test_bool
239-
test_cgi
240-
test_exception_hierarchy
241-
test_glob
242238
test_importlib
243239
test_io
244240
test_iter
245241
test_os
246242
test_pathlib
247-
test_pwd
248-
test_py_compile
249243
test_shutil
250-
test_sys
251-
test_unittest
252244
test_venv
253-
test_zipimport
254245
-# if: runner.os == 'Linux'
255246
if:false# FIXME: pip is vendoring dependencies that we are incompatible with
256247
name:check that --install-pip succeeds

‎Lib/test/test_exception_hierarchy.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ def test_errno_mapping(self):
9393
e=OSError(errcode,"Some message")
9494
self.assertIs(type(e),OSError)
9595

96+
# TODO: RUSTPYTHON
97+
importsys
98+
ifsys.platform=='win32':
99+
test_errno_mapping=unittest.expectedFailure(test_errno_mapping)
100+
96101
deftest_try_except(self):
97102
filename="some_hopefully_non_existing_file"
98103

@@ -136,6 +141,8 @@ def test_posix_error(self):
136141
ifos.name=="nt":
137142
self.assertEqual(e.winerror,None)
138143

144+
# TODO: RUSTPYTHON
145+
@unittest.expectedFailure
139146
@unittest.skipUnless(os.name=="nt","Windows-specific test")
140147
deftest_errno_translation(self):
141148
# ERROR_ALREADY_EXISTS (183) -> EEXIST

‎Lib/test/test_sys.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,10 @@ def check_exit_message(code, expected, **env_vars):
187187
# r'import sys; sys.exit("h\xe9")',
188188
# b"h\xe9", PYTHONIOENCODING='latin-1')
189189

190+
# TODO: RUSTPYTHON
191+
ifsys.platform=='win32':
192+
test_exit=unittest.expectedFailure(test_exit)
193+
190194
deftest_getdefaultencoding(self):
191195
self.assertRaises(TypeError,sys.getdefaultencoding,42)
192196
# can't check more than the type, as the user might have changed it
@@ -275,6 +279,8 @@ def set_recursion_limit_at_depth(depth, limit):
275279
finally:
276280
sys.setrecursionlimit(oldlimit)
277281

282+
# TODO: RUSTPYTHON
283+
@unittest.expectedFailure
278284
deftest_getwindowsversion(self):
279285
# Raise SkipTest if sys doesn't have getwindowsversion attribute
280286
test.support.get_attribute(sys,"getwindowsversion")
@@ -637,6 +643,8 @@ def test_sys_flags_no_instantiation(self):
637643
deftest_sys_version_info_no_instantiation(self):
638644
self.assert_raise_on_new_sys_type(sys.version_info)
639645

646+
# TODO: RUSTPYTHON
647+
@unittest.expectedFailure
640648
deftest_sys_getwindowsversion_no_instantiation(self):
641649
# Skip if not being run on Windows.
642650
test.support.get_attribute(sys,"getwindowsversion")
@@ -949,6 +957,10 @@ def __del__(self):
949957
self.assertEqual(stdout.rstrip(),b"")
950958
self.assertEqual(stderr.rstrip(),b"")
951959

960+
# TODO: RUSTPYTHON
961+
ifsys.platform=='win32':
962+
test_sys_ignores_cleaning_up_user_data=unittest.expectedFailure(test_sys_ignores_cleaning_up_user_data)
963+
952964
@unittest.skipUnless(hasattr(sys,'getandroidapilevel'),
953965
'need sys.getandroidapilevel()')
954966
deftest_getandroidapilevel(self):

‎Lib/unittest/test/test_runner.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,6 +1194,10 @@ def get_parse_out_err(p):
11941194
formsgin [ae_msg,at_msg]:
11951195
self.assertEqual(out.count(msg),1)
11961196

1197+
# TODO: RUSTPYTHON
1198+
ifsys.platform=='win32':
1199+
test_warnings=unittest.expectedFailure(test_warnings)
1200+
11971201
deftestStdErrLookedUpAtInstantiationTime(self):
11981202
# see issue 10786
11991203
old_stderr=sys.stderr

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp