diff options
| author | Guido van Rossum <guido@python.org> | 2000-09-01 19:27:34 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 2000-09-01 19:27:34 +0000 |
| commit | 6f8f92f535c57eae0174a3c76da3801be8769834 (patch) | |
| tree | 30caecdb1f873fe27e887a891e0b7b6989408e40 /Lib/dos-8x3/test_com.py | |
| parent | 9acdd3aed84949286995f8e3df26b41ec8065228 (diff) | |
| download | cpython-git-6f8f92f535c57eae0174a3c76da3801be8769834.tar.gz | |
Adding new files, removing some.
Diffstat (limited to 'Lib/dos-8x3/test_com.py')
| -rw-r--r-- | Lib/dos-8x3/test_com.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Lib/dos-8x3/test_com.py b/Lib/dos-8x3/test_com.py new file mode 100644 index 0000000000..8905864a91 --- /dev/null +++ b/Lib/dos-8x3/test_com.py @@ -0,0 +1,16 @@ +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 |
