add a comment for why we only consider .py files when removing @

--HG--
branch : fix_initial_parsing
This commit is contained in:
holger krekel 2014-07-28 13:56:10 +02:00
parent 83e0b52294
commit 0d17dc1e19
1 changed files with 6 additions and 4 deletions

View File

@ -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):