[py-svn] r57310 - py/branch/event/py/test

hpk at codespeak.net hpk at codespeak.net
Sat Aug 16 13:15:02 CEST 2008


Author: hpk
Date: Sat Aug 16 13:15:00 2008
New Revision: 57310

Modified:
   py/branch/event/py/test/collect.py
Log:
small improvement to default repr_metainfo


Modified: py/branch/event/py/test/collect.py
==============================================================================
--- py/branch/event/py/test/collect.py	(original)
+++ py/branch/event/py/test/collect.py	Sat Aug 16 13:15:00 2008
@@ -69,8 +69,11 @@
                 params['fspath'] = getrelpath(basedir, self.fspath)
         if self.lineno is not None:
             params['lineno'] = self.lineno + 1
+
         if self.fspath and self.lineno and self.modpath:
             line = "%(fspath)s:%(lineno)s: %(modpath)s"
+        elif self.fspath and self.modpath:
+            line = "%(fspath)s: %(modpath)s"
         elif self.fspath and self.lineno:
             line = "%(fspath)s:%(lineno)s"
         else:



More information about the pytest-commit mailing list