diff options
| author | Damien George | 2016-10-11 12:30:32 +1100 |
|---|---|---|
| committer | Damien George | 2016-10-11 12:30:32 +1100 |
| commit | 5e22afce41de8c87071d8fc149a6ba3cd8762819 (patch) | |
| tree | cc8960bfe8bb7949ad5dd6a099ae3e390cb58359 /tests/misc | |
| parent | e49153fb98ade48395b80271093bd763e771b3da (diff) | |
tests: Improve test coverage of py/compile.c.
Diffstat (limited to 'tests/misc')
| -rw-r--r-- | tests/misc/non_compliant.py | 6 | ||||
| -rw-r--r-- | tests/misc/non_compliant.py.exp | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/misc/non_compliant.py b/tests/misc/non_compliant.py index 1157ff8b2..e0b07c3ad 100644 --- a/tests/misc/non_compliant.py +++ b/tests/misc/non_compliant.py @@ -3,6 +3,12 @@ import array import ustruct +# when super can't find self +try: + exec('def f(): super()') +except SyntaxError: + print('SyntaxError') + # array deletion not implemented try: a = array.array('b', (1, 2, 3)) diff --git a/tests/misc/non_compliant.py.exp b/tests/misc/non_compliant.py.exp index c03580442..3095441ad 100644 --- a/tests/misc/non_compliant.py.exp +++ b/tests/misc/non_compliant.py.exp @@ -1,3 +1,4 @@ +SyntaxError TypeError NotImplementedError True |
