Skip to content

Commit 31c3cf6

Browse files
committed
Address review
1 parent 0566a7c commit 31c3cf6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Lib/test/test_sys.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,6 +1074,7 @@ def test_implementation(self):
10741074
self.assertHasAttr(sys.implementation, 'version')
10751075
self.assertHasAttr(sys.implementation, 'hexversion')
10761076
self.assertHasAttr(sys.implementation, 'cache_tag')
1077+
self.assertHasAttr(sys.implementation, 'supports_isolated_interpreters')
10771078

10781079
version = sys.implementation.version
10791080
self.assertEqual(version[:2], (version.major, version.minor))
@@ -1087,10 +1088,10 @@ def test_implementation(self):
10871088
self.assertEqual(sys.implementation.name,
10881089
sys.implementation.name.lower())
10891090

1090-
@test.support.cpython_only
1091-
def test_supports_isolated_interpreters(self):
10921091
# https://peps.python.org/pep-0734
1093-
self.assertIs(sys.implementation.supports_isolated_interpreters, True)
1092+
self.assertIsInstance(sys.implementation.supports_isolated_interpreters, bool)
1093+
if test.support.check_impl_detail(cpython=True):
1094+
self.assertIs(sys.implementation.supports_isolated_interpreters, True)
10941095

10951096
@test.support.cpython_only
10961097
def test_debugmallocstats(self):

0 commit comments

Comments
 (0)