Skip to content

Commit b359cf2

Browse files
committed
tests/misc/non_compliant: Add tests to improve coverage testing.
1 parent d5f42c9 commit b359cf2

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

tests/misc/non_compliant.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,20 @@
7070
except NotImplementedError:
7171
print('NotImplementedError')
7272

73+
# tuple load with step!=1 not implemented
74+
try:
75+
()[2:3:4]
76+
except NotImplementedError:
77+
print('NotImplementedError')
78+
79+
# list store with step!=1 not implemented
80+
try:
81+
[][2:3:4] = []
82+
except NotImplementedError:
83+
print('NotImplementedError')
84+
85+
# list delete with step!=1 not implemented
86+
try:
87+
del [][2:3:4]
88+
except NotImplementedError:
89+
print('NotImplementedError')

tests/misc/non_compliant.py.exp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ NotImplementedError
99
NotImplementedError
1010
NotImplementedError
1111
NotImplementedError
12+
NotImplementedError
13+
NotImplementedError
14+
NotImplementedError

0 commit comments

Comments
 (0)