From f0d8b6eee9762eba3e3c075ddba1c5542e0e64b9 Mon Sep 17 00:00:00 2001 From: Thomas Heller Date: Thu, 12 Jul 2007 19:42:59 +0000 Subject: [PATCH] Simple fixes. --- Lib/ctypes/test/test_repr.py | 2 +- Lib/ctypes/test/test_structures.py | 12 +++--------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/Lib/ctypes/test/test_repr.py b/Lib/ctypes/test/test_repr.py index f6f93666502..383082f8318 100644 --- a/Lib/ctypes/test/test_repr.py +++ b/Lib/ctypes/test/test_repr.py @@ -22,7 +22,7 @@ class ReprTest(unittest.TestCase): self.failUnlessEqual(": " - "expected string or Unicode object, int found") - else: - self.failUnlessEqual(msg, - "(Phone) TypeError: " - "expected string or Unicode object, int found") + self.failUnlessEqual(msg, + "(Phone) : " + "expected string, int found") cls, msg = self.get_except(Person, "Someone", ("a", "b", "c")) self.failUnlessEqual(cls, RuntimeError)