diff options
author | Erlend Egeberg Aasland <erlend.aasland@innova.no> | 2021-05-27 08:43:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-27 08:43:52 +0200 |
commit | fbff5387c3e1f3904420fa5a27738c6c5881305b (patch) | |
tree | a4e01083dde3afdde7306e55f70c1493fdc07b0a /Lib/test/test_dbm_gnu.py | |
parent | 3e7ee02327db13e4337374597cdc4458ecb9e3ad (diff) | |
download | cpython-fbff5387c3e1f3904420fa5a27738c6c5881305b.tar.gz cpython-fbff5387c3e1f3904420fa5a27738c6c5881305b.zip |
bpo-43988: Use check disallow instantiation helper (GH-26392)
Diffstat (limited to 'Lib/test/test_dbm_gnu.py')
-rw-r--r-- | Lib/test/test_dbm_gnu.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_dbm_gnu.py b/Lib/test/test_dbm_gnu.py index b3e55728c8e..f39b0029373 100644 --- a/Lib/test/test_dbm_gnu.py +++ b/Lib/test/test_dbm_gnu.py @@ -31,8 +31,7 @@ class TestGdbm(unittest.TestCase): def test_disallow_instantiation(self): # Ensure that the type disallows instantiation (bpo-43916) self.g = gdbm.open(filename, 'c') - tp = type(self.g) - self.assertRaises(TypeError, tp) + support.check_disallow_instantiation(self, type(self.g)) def test_key_methods(self): self.g = gdbm.open(filename, 'c') |