[py-svn] r8463 - py/dist/py/test/report/text

hpk at codespeak.net hpk at codespeak.net
Sat Jan 22 00:08:07 CET 2005


Author: hpk
Date: Sat Jan 22 00:08:06 2005
New Revision: 8463

Modified:
   py/dist/py/test/report/text/out.py
   py/dist/py/test/report/text/reporter.py
   py/dist/py/test/report/text/summary.py
Log:
small fixes/remove unused code 


Modified: py/dist/py/test/report/text/out.py
==============================================================================
--- py/dist/py/test/report/text/out.py	(original)
+++ py/dist/py/test/report/text/out.py	Sat Jan 22 00:08:06 2005
@@ -65,7 +65,8 @@
         self.write(s)
 
 def getout(file):
-    # investigate further into terminal, this is not enough
+    # XXX investigate further into terminal output, this is not enough
+    #
     if False and file.isatty():
         return TerminalOut(file)
     else:

Modified: py/dist/py/test/report/text/reporter.py
==============================================================================
--- py/dist/py/test/report/text/reporter.py	(original)
+++ py/dist/py/test/report/text/reporter.py	Sat Jan 22 00:08:06 2005
@@ -196,14 +196,6 @@
         else:
             raise TypeError, "not a result instance: %r" % testresult
 
-    #def raiseloc(self, excinfo):
-    #    """ return (origin, offendingline) for the given traceback. """
-    #    tb = excinfo[2]
-    #    origin = misc.getfileloc(tb)
-    #    offendingline = misc.getline(tb)
-    #    return (origin, offendingline)
-
-
 def repr_pythonversion():
     v = py.std.sys.version_info
     try:

Modified: py/dist/py/test/report/text/summary.py
==============================================================================
--- py/dist/py/test/report/text/summary.py	(original)
+++ py/dist/py/test/report/text/summary.py	Sat Jan 22 00:08:06 2005
@@ -83,8 +83,6 @@
             self.out.line("") 
             self.out.line("[%s:%d]" %(entry.frame.code.path, entry.lineno+1))  
             self.repr_locals(entry) 
-            if res: 
-                self.repr_out_err(res) 
             if entry == last: 
                 if res: 
                     root = res.item.extpy.root 
@@ -97,6 +95,8 @@
                         self.out.line("[modulepath: %s]" %(modpath))
                     else:
                         self.out.line("[modulepath: %s %s]" %(root.basename, modpath))
+                if res: 
+                    self.repr_out_err(res) 
                 self.out.sep("_")
             else: 
                 self.out.sep("_ ")



More information about the pytest-commit mailing list