Browse Source

tests/misc/non_compliant: Add tests to improve coverage testing.

pull/2384/head
Damien George 8 years ago
parent
commit
b359cf2911
  1. 17
      tests/misc/non_compliant.py
  2. 3
      tests/misc/non_compliant.py.exp

17
tests/misc/non_compliant.py

@ -70,3 +70,20 @@ try:
except NotImplementedError: except NotImplementedError:
print('NotImplementedError') print('NotImplementedError')
# tuple load with step!=1 not implemented
try:
()[2:3:4]
except NotImplementedError:
print('NotImplementedError')
# list store with step!=1 not implemented
try:
[][2:3:4] = []
except NotImplementedError:
print('NotImplementedError')
# list delete with step!=1 not implemented
try:
del [][2:3:4]
except NotImplementedError:
print('NotImplementedError')

3
tests/misc/non_compliant.py.exp

@ -9,3 +9,6 @@ NotImplementedError
NotImplementedError NotImplementedError
NotImplementedError NotImplementedError
NotImplementedError NotImplementedError
NotImplementedError
NotImplementedError
NotImplementedError

Loading…
Cancel
Save