mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Checkpoint. 218 tests are okay; 53 are failing. Done so far:
- all classes are new-style (but ripping out classobject.[ch] isn't done) - int/int -> float - all exceptions must derive from BaseException - absolute import - 'as' and 'with' are keywords
This commit is contained in:
parent
f3175f6341
commit
45aecf451a
24 changed files with 87 additions and 6365 deletions
|
@ -25,9 +25,9 @@ if n != 90:
|
|||
|
||||
print '2.2 raise class exceptions'
|
||||
|
||||
class AClass: pass
|
||||
class AClass(Exception): pass
|
||||
class BClass(AClass): pass
|
||||
class CClass: pass
|
||||
class CClass(Exception): pass
|
||||
class DClass(AClass):
|
||||
def __init__(self, ignore):
|
||||
pass
|
||||
|
@ -58,8 +58,8 @@ except AClass, v:
|
|||
if v != b: raise TestFailed, "v!=b AClass"
|
||||
|
||||
# not enough arguments
|
||||
try: raise BClass, a
|
||||
except TypeError: pass
|
||||
##try: raise BClass, a
|
||||
##except TypeError: pass
|
||||
|
||||
try: raise DClass, a
|
||||
except DClass, v:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue