From 0da3e51e1c08eed2c8054d4a71bc591268b19af1 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 7 Jun 2015 13:18:33 +1200 Subject: Make parse_pathoc a generator This lets us do things like this: get:/:ir,@1:x1000000000 It will also let us expand the language to include a "repeat forever" concept. --- test/test_cmdline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/test_cmdline.py') diff --git a/test/test_cmdline.py b/test/test_cmdline.py index b9607029..c1b55608 100644 --- a/test/test_cmdline.py +++ b/test/test_cmdline.py @@ -135,7 +135,7 @@ def test_pathoc(perror): tutils.test_data.path("data/request") ] ) - assert len(a.requests) == 1 + assert len(list(a.requests)) == 1 a = cmdline.args_pathod( [ -- cgit v1.2.3