summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_str.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_str.py')
-rw-r--r--Lib/test/test_str.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_str.py b/Lib/test/test_str.py
index ea37eb5..7bdd288 100644
--- a/Lib/test/test_str.py
+++ b/Lib/test/test_str.py
@@ -1578,7 +1578,7 @@ class StrTest(string_tests.StringLikeTest,
self.assertRaisesRegex(TypeError, '%u format: a real number is required, not complex', operator.mod, '%u', 3j)
self.assertRaisesRegex(TypeError, '%i format: a real number is required, not complex', operator.mod, '%i', 2j)
self.assertRaisesRegex(TypeError, '%d format: a real number is required, not complex', operator.mod, '%d', 1j)
- self.assertRaisesRegex(TypeError, '%c requires int or char', operator.mod, '%c', pi)
+ self.assertRaisesRegex(TypeError, r'%c requires an int or a unicode character, not .*\.PseudoFloat', operator.mod, '%c', pi)
class RaisingNumber:
def __int__(self):