Skip to content

Commit edbc7a9

Browse files
alanjdscoolreader18
authored andcommitted
Disable gc on RustPython tests
1 parent d0d454b commit edbc7a9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/snippets/types_snippet.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
from testutils import assert_raises
22

3-
try:
4-
import gc
5-
except ImportError:
3+
import platform
4+
if platform.python_implementation() == 'RustPython':
65
gc = None
6+
else:
7+
import gc
78

89
assert type(type) is type
910
assert type(object) is type

0 commit comments

Comments
 (0)