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
5af16bd8
Commit
5af16bd8
authored
Jul 25, 2000
by
Peter Schneider-Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added test case for fixed duplicate arguments bug in Python/compile.c
parent
4fef82fe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
Lib/test/output/test_compile
Lib/test/output/test_compile
+1
-0
Lib/test/test_compile.py
Lib/test/test_compile.py
+16
-0
No files found.
Lib/test/output/test_compile
0 → 100644
View file @
5af16bd8
test_compile
Lib/test/test_compile.py
0 → 100644
View file @
5af16bd8
from
test_support
import
verbose
,
TestFailed
if
verbose
:
print
'Running test on duplicate arguments'
try
:
exec
(
'def f(a, a): pass'
)
raise
TestFailed
,
"duplicate arguments"
except
SyntaxError
:
pass
try
:
exec
(
'def f(a = 0, a = 1): pass'
)
raise
TestFailed
,
"duplicate keyword arguments"
except
SyntaxError
:
pass
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