mirror of
https://github.com/python/cpython.git
synced 2025-07-30 22:54:16 +00:00
Reverting the Revision: 77368. I committed Flox's big patch for tests by
mistake. ( It may come in for sure tough)
This commit is contained in:
parent
3ddc435af6
commit
ce8e33a095
107 changed files with 436 additions and 794 deletions
|
@ -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__
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue