mailr22913 - /trunk/test_suite/verification_tests/library.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on May 02, 2014 - 11:56:
Author: bugman
Date: Fri May  2 11:56:05 2014
New Revision: 22913

URL: http://svn.gna.org/viewcvs/relax?rev=22913&view=rev
Log:
Fix for bug #22002, the failure of the Library.test_library_independence 
software verification test.

This is reported at https://gna.org/bugs/?22002.

The fix was simply to use the relax installation path in the status singleton 
object to make sure
that the relax 'lib' directory can be found independently of what the current 
working directory is.


Modified:
    trunk/test_suite/verification_tests/library.py

Modified: trunk/test_suite/verification_tests/library.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/test_suite/verification_tests/library.py?rev=22913&r1=22912&r2=22913&view=diff
==============================================================================
--- trunk/test_suite/verification_tests/library.py      (original)
+++ trunk/test_suite/verification_tests/library.py      Fri May  2 11:56:05 
2014
@@ -30,6 +30,9 @@
 from tempfile import mkdtemp
 from unittest import TestCase
 
+# relax module imports.
+from status import Status; status = Status()
+
 
 class Library(TestCase):
     """Test the relax library."""
@@ -56,7 +59,7 @@
 
         # Copy the entire library to the temporary directory.
         tmplib = self.tmpdir + sep + 'lib'
-        copytree('lib', tmplib)
+        copytree(status.install_path+sep+'lib', tmplib)
 
         # Create a Python script for testing the import independently of 
relax.
         script_name = self.tmpdir + sep + 'test.py'




Related Messages


Powered by MHonArc, Updated Fri May 02 12:00:02 2014