summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_codecs.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/Lib/test/test_codecs.py b/Lib/test/test_codecs.py
index 0362d26..36cebd5 100644
--- a/Lib/test/test_codecs.py
+++ b/Lib/test/test_codecs.py
@@ -23,9 +23,16 @@ class UTF16Test(unittest.TestCase):
f = reader(s)
self.assertEquals(f.read(), u"spamspam")
+class EscapeDecodeTest(unittest.TestCase):
+ def test_empty_escape_decode(self):
+ self.assertEquals(codecs.escape_decode(""), ("", 0))
+
def test_main():
- test_support.run_unittest(UTF16Test)
+ suite = unittest.TestSuite()
+ suite.addTest(unittest.makeSuite(UTF16Test))
+ suite.addTest(unittest.makeSuite(EscapeDecodeTest))
+ test_support.run_suite(suite)
if __name__ == "__main__":