Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
a300b7fb
Commit
a300b7fb
authored
Dec 26, 1991
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New class syntax.
Use ImportERror
parent
b8e121d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
Lib/test/testall.py
Lib/test/testall.py
+8
-12
No files found.
Lib/test/testall.py
View file @
a300b7fb
...
...
@@ -176,7 +176,6 @@ print 'try_stmt' # 'try' ':' suite (except_clause ':' suite)* ['finally' ':' sui
### except_clause: 'except' [expr [',' expr]]
try
:
pass
try
:
1
/
0
except
RuntimeError
:
pass
except
ZeroDivisionError
:
pass
try
:
1
/
0
except
EOFError
:
pass
...
...
@@ -269,11 +268,11 @@ x = 123
print
'classdef'
# 'class' NAME parameters ['=' baselist] ':' suite
### baselist: atom arguments (',' atom arguments)*
### arguments: '(' [testlist] ')'
class
B
()
:
pass
class
C1
(
)
=
B
(
):
pass
class
C2
(
)
=
B
(
):
pass
class
D
(
)
=
C1
(),
C2
(),
B
(
):
pass
class
C
()
:
class
B
:
pass
class
C1
(
B
):
pass
class
C2
(
B
):
pass
class
D
(
C1
,
C2
,
B
):
pass
class
C
:
def
meth1
(
self
):
pass
def
meth2
(
self
,
arg
):
pass
def
meth3
(
self
,
(
a1
,
a2
)):
pass
...
...
@@ -486,12 +485,9 @@ print 'Passed all tests.'
try
:
import
mac
unlink
=
mac
.
unlink
except
NameError
:
try
:
import
posix
unlink
=
posix
.
unlink
except
NameError
:
pass
except
ImportError
:
import
posix
unlink
=
posix
.
unlink
unlink
(
'@test'
)
print
'Unlinked @test'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment