diff options
author | Victor Stinner <vstinner@python.org> | 2021-04-30 12:06:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-30 12:06:49 (GMT) |
commit | 0cad068ec174bbe33fb80460da56eb413f3b9359 (patch) | |
tree | 530294e1078c5da834364b5d8f2637bbb4fc28f7 /Lib/test/test_hmac.py | |
parent | 3bb09947ec4837de75532e21dd4bd25db0a1f1b7 (diff) | |
download | cpython-0cad068ec174bbe33fb80460da56eb413f3b9359.zip cpython-0cad068ec174bbe33fb80460da56eb413f3b9359.tar.gz cpython-0cad068ec174bbe33fb80460da56eb413f3b9359.tar.bz2 |
bpo-43916: Remove _disabled_new() function (GH-25745)
posix and _hashlib use the new Py_TPFLAGS_DISALLOW_INSTANTIATION
flag on their heap types, rather than using a custom tp_new function
(_disabled_new).
Diffstat (limited to 'Lib/test/test_hmac.py')
-rw-r--r-- | Lib/test/test_hmac.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_hmac.py b/Lib/test/test_hmac.py index adf52ad..22d74e9 100644 --- a/Lib/test/test_hmac.py +++ b/Lib/test/test_hmac.py @@ -440,7 +440,7 @@ class ConstructorTestCase(unittest.TestCase): def test_internal_types(self): # internal types like _hashlib.C_HMAC are not constructable with self.assertRaisesRegex( - TypeError, "cannot create 'HMAC' instance" + TypeError, "cannot create '_hashlib.HMAC' instance" ): C_HMAC() |