diff options
author | Senthil Kumaran <orsenthil@gmail.com> | 2010-01-08 19:04:16 +0000 |
---|---|---|
committer | Senthil Kumaran <orsenthil@gmail.com> | 2010-01-08 19:04:16 +0000 |
commit | ce8e33a095030e7af94f58f9da196b240bdf0476 (patch) | |
tree | b0ba50cbb6e85c6be6f6e6a870e4232be50a0f9c /Lib/test/test_traceback.py | |
parent | 3ddc435af6873c6304058d7bcbcb19ee4fba7781 (diff) | |
download | cpython-git-ce8e33a095030e7af94f58f9da196b240bdf0476.tar.gz |
Reverting the Revision: 77368. I committed Flox's big patch for tests by
mistake. ( It may come in for sure tough)
Diffstat (limited to 'Lib/test/test_traceback.py')
-rw-r--r-- | Lib/test/test_traceback.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_traceback.py b/Lib/test/test_traceback.py index 61195a5d03..b29869ac8f 100644 --- a/Lib/test/test_traceback.py +++ b/Lib/test/test_traceback.py @@ -4,7 +4,6 @@ from _testcapi import traceback_print from StringIO import StringIO import sys import unittest -from imp import reload from test.test_support import run_unittest, is_jython, Error import traceback @@ -149,7 +148,7 @@ def test(): def test_format_exception_only_bad__str__(self): class X(Exception): def __str__(self): - 1 // 0 + 1/0 err = traceback.format_exception_only(X, X()) self.assertEqual(len(err), 1) str_value = '<unprintable %s object>' % X.__name__ |