Consistently raise a TypeError when a non str is passed to hashlib.new
regardless of which of the two implementations of new is used.
diff --git a/Lib/test/test_hashlib.py b/Lib/test/test_hashlib.py
index 95bf0b3..f5c242e 100644
--- a/Lib/test/test_hashlib.py
+++ b/Lib/test/test_hashlib.py
@@ -128,6 +128,7 @@
                 sys.modules['_md5'] = _md5
             else:
                 del sys.modules['_md5']
+        self.assertRaises(TypeError, get_builtin_constructor, 3)
 
     def test_hexdigest(self):
         for name in self.supported_hash_names: