[Pytest-commit] commit/pytest: hpk42: add a comment for why we only consider .py files when removing @

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Mon Jul 28 13:56:17 CEST 2014


1 new commit in pytest:

https://bitbucket.org/hpk42/pytest/commits/d8958acde81e/
Changeset:   d8958acde81e
Branch:      fix_initial_parsing
User:        hpk42
Date:        2014-07-28 13:56:10
Summary:     add a comment for why we only consider .py files when removing @
Affected #:  1 file

diff -r ae861e335daf21dc2a0480fa540467264016e4cb -r d8958acde81ea1bddbcb8a6fa45f61462e40b788 testing/test_parseopt.py
--- a/testing/test_parseopt.py
+++ b/testing/test_parseopt.py
@@ -151,11 +151,13 @@
                              'path.py at 123',
                              'hello/path.py at 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 at 2::item',
-                    'path2.py::func2[param with .py at 123]',
-                    'path.py',
-                    'hello/path.py',
+            'path.txt at 2::item',
+            'path2.py::func2[param with .py at 123]',
+            'path.py',
+            'hello/path.py',
         ]
 
     def test_parse_defaultgetter(self):

Repository URL: https://bitbucket.org/hpk42/pytest/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.


More information about the pytest-commit mailing list