Skip to content

Commit cffd974

Browse files
committed
Enable more tests
1 parent 63319e1 commit cffd974

5 files changed

Lines changed: 14 additions & 2 deletions

File tree

Src/IronPythonTest/Cases/CPythonCasesManifest.ini

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,6 +1215,9 @@ Ignore=true # AssertionError: 5 != 4
12151215
[CPython.test_grammar]
12161216
Ignore=true # blocked by https://github.com/IronLanguages/ironpython3/issues/98
12171217

1218+
[CPython.test_gzip]
1219+
IsolationLevel=PROCESS # https://github.com/IronLanguages/ironpython3/issues/1440
1220+
12181221
[CPython.test_hashlib]
12191222
Ignore=true # AttributeError: 'module' object has no attribute 'shake_128'
12201223

@@ -1227,6 +1230,9 @@ Ignore=true # two failures
12271230
[CPython.test_list]
12281231
Ignore=true # blocking
12291232

1233+
[CPython.test_macpath]
1234+
IsolationLevel=PROCESS # https://github.com/IronLanguages/ironpython3/issues/1440
1235+
12301236
[CPython.test_math]
12311237
Ignore=true # precision?
12321238

Src/IronPythonTest/Cases/IronPythonCasesManifest.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ Ignore=true
177177
Ignore=true # test_doc
178178

179179
[IronPython.test_builtin_stdlib]
180-
Ignore=true # NameError: name 'ModuleNotFoundError' is not defined / multiple other things
180+
Ignore=true # multiple failures
181181

182182
[IronPython.test_codecs_stdlib]
183183
Ignore=true # multiple failures

Src/StdLib/Lib/test/support/script_helper.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ def interpreter_requires_environment():
3939
"""
4040
global __cached_interp_requires_environment
4141
if __cached_interp_requires_environment is None:
42+
# https://github.com/IronLanguages/ironpython3/issues/1440
43+
if sys.implementation.name == "ironpython":
44+
__cached_interp_requires_environment = True
45+
return True
46+
4247
# If PYTHONHOME is set, assume that we need it
4348
if 'PYTHONHOME' in os.environ:
4449
__cached_interp_requires_environment = True

Src/StdLib/Lib/test/test_slice.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ class myobj(): pass
247247
o = myobj()
248248
o.s = slice(o)
249249
w = weakref.ref(o)
250+
del o # ironpython: for whatever reason setting to None is not enough on .NET Framework...
250251
o = None
251252
support.gc_collect()
252253
self.assertIsNone(w())

Tests/test_file.py

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

688688
with self.assertRaises(OSError) as cm:
689689
open('path_too_long' * 100)
690-
self.assertEqual(cm.exception.errno, (36 if is_posix else 22) if is_netcoreapp and not is_posix or sys.version_info >= (3,6) else 2)
690+
self.assertEqual(cm.exception.errno, (36 if is_posix else 22) if is_netcoreapp and not is_posix or not is_cli and sys.version_info >= (3,6) else 2)
691691

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

0 commit comments

Comments
 (0)