summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_unicode.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-09-21 15:46:41 (GMT)
committerGuido van Rossum <guido@python.org>2001-09-21 15:46:41 (GMT)
commit11310bf867ae1c26d2ad9dc696bf2331709b9843 (patch)
treea86cb921ac39dc6559772a3e26e30166b31a98a5 /Lib/test/test_unicode.py
parentad9744a67abb619fa1ce331d9e0314de05c7345e (diff)
downloadcpython-11310bf867ae1c26d2ad9dc696bf2331709b9843.zip
cpython-11310bf867ae1c26d2ad9dc696bf2331709b9843.tar.gz
cpython-11310bf867ae1c26d2ad9dc696bf2331709b9843.tar.bz2
Add tests for repr() of strings containing string quotes as well.
Diffstat (limited to 'Lib/test/test_unicode.py')
-rw-r--r--Lib/test/test_unicode.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py
index 0748dc7..b0d024b 100644
--- a/Lib/test/test_unicode.py
+++ b/Lib/test/test_unicode.py
@@ -18,6 +18,10 @@ verify(repr(u'\n') == "u'\\n'")
verify(repr(u'\r') == "u'\\r'")
verify(repr(u'\t') == "u'\\t'")
verify(repr(u'\b') == "u'\\x08'")
+verify(repr(u"'\"") == """u'\\'"'""")
+verify(repr(u"'\"") == """u'\\'"'""")
+verify(repr(u"'") == '''u"'"''')
+verify(repr(u'"') == """u'"'""")
def test(method, input, output, *args):
if verbose: