Fixed the error reporting (raise of TestFailed) for the zip() and
authorBarry Warsaw <barry@python.org>
Tue, 19 Sep 2000 14:42:09 +0000 (14:42 +0000)
committerBarry Warsaw <barry@python.org>
Tue, 19 Sep 2000 14:42:09 +0000 (14:42 +0000)
zip(None) tests.  Found by Finn Bock a while ago.

Lib/test/test_b2.py

index 84d3454f279242ef4b618307b4cdb0d5dcb5b9d6..e7553ed1f5d06f80f7ad0040d79e0897d4de3dab 100644 (file)
@@ -276,7 +276,7 @@ except TypeError:
        exc = 1
 except:
        e = sys.exc_info()[0]
-       raise TestFailed, 'zip() - no args, expected TypeError, got', e
+       raise TestFailed, 'zip() - no args, expected TypeError, got %s' % e
 if not exc:
        raise TestFailed, 'zip() - no args, missing expected TypeError'
 
@@ -287,7 +287,7 @@ except TypeError:
        exc = 1
 except:
        e = sys.exc_info()[0]
-       raise TestFailed, 'zip(None) - expected TypeError, got', e
+       raise TestFailed, 'zip(None) - expected TypeError, got %s' % e
 if not exc:
        raise TestFailed, 'zip(None) - missing expected TypeError'