Kaydet (Commit) 0fb43762 authored tarafından Neal Norwitz's avatar Neal Norwitz

Must inherit from Exception now.

üst ef4f7f02
......@@ -211,7 +211,7 @@ class MiscTest(unittest.TestCase):
# Check that exceptions in __nonzero__ are properly
# propagated by the not operator
import operator
class Exc:
class Exc(Exception):
pass
class Bad:
def __nonzero__(self):
......@@ -305,7 +305,7 @@ class ListTest(unittest.TestCase):
def test_badentry(self):
# make sure that exceptions for item comparison are properly
# propagated in list comparisons
class Exc:
class Exc(Exception):
pass
class Bad:
def __eq__(self, other):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment