mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Remove support for __members__ and __methods__. There still might be
some cleanup to do on this. Particularly in Python/traceback.c with getting rid of the getattr if possible and Demo/*metaclasses/Enum.py.
This commit is contained in:
parent
32ca442b13
commit
8dfc4a9bac
14 changed files with 83 additions and 195 deletions
|
@ -52,14 +52,6 @@ class TracebackCases(unittest.TestCase):
|
|||
self.assert_("^" in err[2])
|
||||
self.assertEqual(err[1].find(")"), err[2].find("^"))
|
||||
|
||||
def test_members(self):
|
||||
# Covers Python/structmember.c::listmembers()
|
||||
try:
|
||||
1/0
|
||||
except:
|
||||
import sys
|
||||
sys.exc_info()[2].__members__
|
||||
|
||||
def test_base_exception(self):
|
||||
# Test that exceptions derived from BaseException are formatted right
|
||||
e = KeyboardInterrupt()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue