unittestgui cannot find test modules when in current-working directory. [Patch included!]

Bug #147543 reported by Matt T. Proud
2
Affects Status Importance Assigned to Milestone
python-unit (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: python-unit

The graphical unit test runner, unittestgui.py, cannot find unit test modules when they are in the current-working directory.

To alleviate this problem, modify the source package in the following way:

diff -u python-unit-1.4.1.orig/unittestgui.py python-unit-1.4.1/unittestgui.py
--- python-unit-1.4.1.orig/unittestgui.py 2007-10-01 00:46:25.000000000 -0700
+++ python-unit-1.4.1/unittestgui.py 2007-10-01 00:46:53.000000000 -0700
@@ -72,6 +72,7 @@
             self.__rollbackImporter.rollbackImports()
         self.__rollbackImporter = RollbackImporter()
         try:
+ sys.path.append('.')
             test = unittest.defaultTestLoader.loadTestsFromName(testName)
         except:
             exc_type, exc_value, exc_tb = sys.exc_info()

Tags: patch
Revision history for this message
Matt T. Proud (matttproud) wrote :
Revision history for this message
Daniel T Chen (crimsun) wrote :

Is this symptom still reproducible in 8.10 RC or later?

Changed in python-unit:
status: New → Incomplete
Revision history for this message
Pedro Villavicencio (pedro) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to New. Thanks again!.

Changed in python-unit:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.