diff options
Diffstat (limited to 'Lib/test/test_float.py')
| -rw-r--r-- | Lib/test/test_float.py | 1 | 
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_float.py b/Lib/test/test_float.py index 96d907a671..e1e1f0423e 100644 --- a/Lib/test/test_float.py +++ b/Lib/test/test_float.py @@ -41,6 +41,7 @@ class GeneralFloatCases(unittest.TestCase):          self.assertRaises(ValueError, float, "-.")          self.assertRaises(ValueError, float, b"-")          self.assertRaises(TypeError, float, {}) +        self.assertRaisesRegex(TypeError, "not 'dict'", float, {})          # Lone surrogate          self.assertRaises(UnicodeEncodeError, float, '\uD8F0')          # check that we don't accept alternate exponent markers  | 
