summaryrefslogtreecommitdiff
path: root/tests/basics/sys1.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basics/sys1.py')
-rw-r--r--tests/basics/sys1.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/basics/sys1.py b/tests/basics/sys1.py
index 94220fe4a..31081e423 100644
--- a/tests/basics/sys1.py
+++ b/tests/basics/sys1.py
@@ -30,6 +30,12 @@ else:
# Effectively skip subtests
print(str)
+if hasattr(sys.implementation, '_thread'):
+ print(sys.implementation._thread in ("GIL", "unsafe"))
+else:
+ # Effectively skip subtests
+ print(True)
+
try:
print(sys.intern('micropython') == 'micropython')
has_intern = True