[Patches] [ python-Patches-819077 ] fix import problem(unittest.py)

SourceForge.net noreply at sourceforge.net
Tue Oct 7 03:23:47 EDT 2003


Patches item #819077, was opened at 2003-10-07 16:23
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=819077&group_id=5470

Category: Library (Lib)
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: George Yoshida (quiver)
Assigned to: Nobody/Anonymous (nobody)
Summary: fix import problem(unittest.py)

Initial Comment:
This patch includes 3 changes to unittest.py.

* Don't import unittest.(important)
  unittest is imported in the original script.
  This can be the cause of trouble.

* cast float (trivial)
  TextTestRunner.run() method has the line as 
follows:
  timeTaken = float(stopTime - startTime)

  However, time.time() returns the time by a 
floating point number by default.
  So you don't need to cast the value to a float.

* fix typo (trivial)
  """Note that decimal places (from zero) is 
usually ..."""

  'is' should be 'are'.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=819077&group_id=5470



More information about the Patches mailing list