From 0d17dc1e194494c485ec399a9196f4ff8636cd82 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Mon, 28 Jul 2014 13:56:10 +0200 Subject: [PATCH] add a comment for why we only consider .py files when removing @ --HG-- branch : fix_initial_parsing --- testing/test_parseopt.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/testing/test_parseopt.py b/testing/test_parseopt.py index 360bbd13b..36defef2c 100644 --- a/testing/test_parseopt.py +++ b/testing/test_parseopt.py @@ -151,11 +151,13 @@ class TestParser: 'path.py@123', 'hello/path.py@123', ]) + # we only remove "@NUM" syntax for .py files which are currently + # the only ones which can produce it. assert getattr(args, parseopt.FILE_OR_DIR) == [ - 'path.txt@2::item', - 'path2.py::func2[param with .py@123]', - 'path.py', - 'hello/path.py', + 'path.txt@2::item', + 'path2.py::func2[param with .py@123]', + 'path.py', + 'hello/path.py', ] def test_parse_defaultgetter(self):