Skip to content

Commit 638edd0

Browse files
committed
Remove redundant test case.
1 parent 8bb4f62 commit 638edd0

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

Lib/test/test_sys.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -713,20 +713,6 @@ def test_43581(self):
713713
# the test runs under regrtest.
714714
self.assertEqual(sys.__stdout__.encoding, sys.__stderr__.encoding)
715715

716-
@unittest.skipUnless(hasattr(sys, "_is_immortal"), "immortality is not supported")
717-
def test_immortal(self):
718-
# Not extensive
719-
known_immortals = (True, False, None, 0, ())
720-
for immortal in known_immortals:
721-
with self.subTest(immortal=immortal):
722-
self.assertTrue(sys._is_immortal(immortal))
723-
724-
# Some arbitrary mutable objects
725-
non_immortals = (object(), self, [object()])
726-
for non_immortal in non_immortals:
727-
with self.subTest(non_immortal=non_immortal):
728-
self.assertFalse(sys._is_immortal(non_immortal))
729-
730716
def test_intern(self):
731717
has_is_interned = (test.support.check_impl_detail(cpython=True)
732718
or hasattr(sys, '_is_interned'))

0 commit comments

Comments
 (0)