Skip to content

Commit 772f47b

Browse files
committed
Fix some tests
1 parent 6c5aa97 commit 772f47b

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

tests/IronPython.Tests/Cases/CPythonCasesManifest.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,9 @@ Ignore=true
186186
Ignore=true
187187
Reason=ImportError: No module named audioop
188188

189+
[CPython.test_base64]
190+
IsolationLevel=PROCESS # https://github.com/IronLanguages/ironpython3/issues/1440
191+
189192
[CPython.test_bdb] # new in 3.6
190193
Ignore=true
191194

tests/suite/test_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ def test_errors(self):
688688

689689
with self.assertRaises(OSError) as cm:
690690
open('path_too_long' * 100)
691-
self.assertEqual(cm.exception.errno, (errno.ENAMETOOLONG if is_posix else errno.EINVAL) if is_netcoreapp or sys.version_info >= (3,6) else errno.ENOENT)
691+
self.assertEqual(cm.exception.errno, (errno.ENAMETOOLONG if is_posix else errno.EINVAL) if is_netcoreapp or is_cpython and sys.version_info >= (3,6) else errno.ENOENT)
692692

693693
def test_write_bytes(self):
694694
fname = self.temp_file

tests/suite/test_threading_stdlib.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,16 @@ def load_tests(loader, standard_tests, pattern):
1414
tests = loader.loadTestsFromModule(test.test_threading)
1515

1616
if is_ironpython:
17-
failing_tests = []
17+
failing_tests = [
18+
test.test_threading.CRLockTests('test_weakref_deleted'), # TypeError: cannot create weak reference to 'RLock' object
19+
test.test_threading.CRLockTests('test_weakref_exists'), # TypeError: cannot create weak reference to 'RLock' object
20+
test.test_threading.LockTests('test_weakref_deleted'), # TypeError: cannot create weak reference to 'lock' object
21+
test.test_threading.LockTests('test_weakref_exists'), # TypeError: cannot create weak reference to 'lock' object
22+
test.test_threading.ConditionAsRLockTests('test_weakref_deleted'), # AssertionError
23+
test.test_threading.PyRLockTests('test_weakref_deleted'), # AssertionError
24+
test.test_threading.ThreadTests('test_main_thread_during_shutdown'), # AssertionError
25+
test.test_threading.ThreadingExceptionTests('test_bare_raise_in_brand_new_thread'), # AssertionError: TypeError('exceptions must derive from BaseException',) is not an instance of <class 'RuntimeError'>
26+
]
1827

1928
skip_tests = [
2029
test.test_threading.SubinterpThreadingTests('test_threads_join'), # ImportError: No module named '_testcapi'

0 commit comments

Comments
 (0)