[py-svn] commit/pytest: hpk42: fix and test --fixtures location information

Bitbucket commits-noreply at bitbucket.org
Wed Oct 17 13:13:54 CEST 2012


1 new commit in pytest:


https://bitbucket.org/hpk42/pytest/changeset/fbd9f8995972/
changeset:   fbd9f8995972
user:        hpk42
date:        2012-10-17 13:12:33
summary:     fix and test --fixtures location information
affected #:  2 files

diff -r 29f960b2322f533da940d72265adc8b0de5dc27c -r fbd9f89959726658746f4f17b0ba67aca8ec1939 _pytest/python.py
--- a/_pytest/python.py
+++ b/_pytest/python.py
@@ -761,7 +761,7 @@
         if verbose <= 0 and argname[0] == "_":
             continue
         if verbose > 0:
-            funcargspec = "%s -- %s" %(argname, loc,)
+            funcargspec = "%s -- %s" %(argname, bestrel,)
         else:
             funcargspec = argname
         tw.line(funcargspec, green=True)


diff -r 29f960b2322f533da940d72265adc8b0de5dc27c -r fbd9f89959726658746f4f17b0ba67aca8ec1939 testing/test_python.py
--- a/testing/test_python.py
+++ b/testing/test_python.py
@@ -1590,7 +1590,7 @@
     def test_show_fixtures_verbose(self, testdir):
         result = testdir.runpytest("--fixtures", "-v")
         result.stdout.fnmatch_lines([
-                "*tmpdir*",
+                "*tmpdir*--*tmpdir.py*",
                 "*temporary directory*",
             ]
         )

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