summaryrefslogtreecommitdiff
path: root/Lib/test/test_tempfile.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_tempfile.py')
-rw-r--r--Lib/test/test_tempfile.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_tempfile.py b/Lib/test/test_tempfile.py
index 524ab7c6d7..f4cba0fa8d 100644
--- a/Lib/test/test_tempfile.py
+++ b/Lib/test/test_tempfile.py
@@ -10,6 +10,7 @@ import re
import warnings
import contextlib
import stat
+import types
import weakref
from unittest import mock
@@ -1222,8 +1223,8 @@ class TestSpooledTemporaryFile(BaseTestCase):
self.assertEqual(os.fstat(f.fileno()).st_size, 20)
def test_class_getitem(self):
- self.assertIs(tempfile.SpooledTemporaryFile[bytes],
- tempfile.SpooledTemporaryFile)
+ self.assertIsInstance(tempfile.SpooledTemporaryFile[bytes],
+ types.GenericAlias)
if tempfile.NamedTemporaryFile is not tempfile.TemporaryFile: