File tree Expand file tree Collapse file tree
grumpy-runtime-src/testing Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5050assert a == [0 ]
5151try :
5252 a .pop (5 )
53- assert AssertionError
53+ assert False , "Exception: 'pop index out of range' was not raised"
5454except IndexError :
5555 pass
5656assert a .pop (0 ) == 0
5757assert a == []
5858try :
5959 a .pop ()
60- assert AssertionError
60+ assert False , "Exception: 'pop from empty list' was not raised"
6161except IndexError :
6262 pass
6363try :
6464 a .pop (42 , 42 )
65- assert AssertionError
65+ assert False , "Exception: 'pop takes at most 1 argument' was not raised"
6666except TypeError :
6767 pass
6868a = [- 1 , 0 , 1 ]
8989
9090try :
9191 a .extend ()
92- assert AssertionError
92+ assert False , "Exception: 'extend() takes exactly one argument' was not raised"
9393except TypeError :
9494 pass
9595
9696try :
9797 a .extend ([], [])
98- assert AssertionError
98+ assert False , "Exception: 'extend() takes exactly one argument' was not raised"
9999except TypeError :
100100 pass
101101
107107
108108try :
109109 [].count ()
110- assert AssertionError
110+ assert False , "Exception: 'count() takes exactly one argument' was not raised"
111111except TypeError :
112112 pass
You can’t perform that action at this time.
0 commit comments