File tree 2 files changed +13
-2
lines changed
2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -526,7 +526,7 @@ def do_cmd(self, cmd):
526
526
cmd = self .commands .get (cmd [0 ],
527
527
commands .invalid_command )(self , * cmd )
528
528
elif isinstance (cmd [0 ], type ):
529
- cmd = cmd [0 ](self , cmd )
529
+ cmd = cmd [0 ](self , * cmd )
530
530
else :
531
531
return # nothing to do
532
532
Original file line number Diff line number Diff line change 17
17
# CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
18
18
# CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19
19
20
- from .infrastructure import EA , read_spec
20
+ from pyrepl .historical_reader import HistoricalReader
21
+ from .infrastructure import EA , TestReader , read_spec
21
22
22
23
# this test case should contain as-verbatim-as-possible versions of
23
24
# (applicable) bug reports
24
25
25
26
import pytest
26
27
28
+ class HistoricalTestReader (HistoricalReader , TestReader ):
29
+ pass
30
+
27
31
@pytest .mark .xfail (reason = 'event missing' , run = False )
28
32
def test_transpose_at_start ():
29
33
read_spec ([( 'transpose' , [EA , '' ]),
30
34
( 'accept' , ['' ])])
31
35
36
+ def test_cmd_instantiation_crash ():
37
+ spec = [
38
+ ('reverse-history-isearch' , ["(r-search `') " ]),
39
+ (('key' , 'left' ), ['' ]),
40
+ ('accept' , ['' ])
41
+ ]
42
+ read_spec (spec , HistoricalTestReader )
You can’t perform that action at this time.
0 commit comments