mailr10038 - in /1.3/test_suite: shared_data/model_free/bug_14872_unicode_selection/ shared_data/model_free/bug_14872_unicode_se...


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

Header


Content

Posted by edward on December 02, 2009 - 14:14:
Author: bugman
Date: Wed Dec  2 14:14:54 2009
New Revision: 10038

URL: http://svn.gna.org/viewcvs/relax?rev=10038&view=rev
Log:
Added a system test to catch bug #14872 (https://gna.org/bugs/?14872).

This is the unicode selection bug reported by Olivier Serve <olivier dott 
serve att gmail dott com>.


Added:
    1.3/test_suite/shared_data/model_free/bug_14872_unicode_selection/
    1.3/test_suite/shared_data/model_free/bug_14872_unicode_selection/m4/
    
1.3/test_suite/shared_data/model_free/bug_14872_unicode_selection/m4/results.bz2
   (with props)
    1.3/test_suite/shared_data/model_free/bug_14872_unicode_selection/m5/
    
1.3/test_suite/shared_data/model_free/bug_14872_unicode_selection/m5/results.bz2
   (with props)
    1.3/test_suite/system_tests/scripts/bug_14872_unicode_selection.py
Modified:
    1.3/test_suite/system_tests/model_free.py

Added: 
1.3/test_suite/shared_data/model_free/bug_14872_unicode_selection/m4/results.bz2
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/shared_data/model_free/bug_14872_unicode_selection/m4/results.bz2?rev=10038&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
1.3/test_suite/shared_data/model_free/bug_14872_unicode_selection/m4/results.bz2
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: 
1.3/test_suite/shared_data/model_free/bug_14872_unicode_selection/m5/results.bz2
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/shared_data/model_free/bug_14872_unicode_selection/m5/results.bz2?rev=10038&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
1.3/test_suite/shared_data/model_free/bug_14872_unicode_selection/m5/results.bz2
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: 1.3/test_suite/system_tests/model_free.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/system_tests/model_free.py?rev=10038&r1=10037&r2=10038&view=diff
==============================================================================
--- 1.3/test_suite/system_tests/model_free.py (original)
+++ 1.3/test_suite/system_tests/model_free.py Wed Dec  2 14:14:54 2009
@@ -157,6 +157,13 @@
 
             # Check that they are equal (converting to strings to avoid 
comparison nastiness).
             self.assertEqual(str(sub_obj1), str(sub_obj2))
+
+
+    def test_bug_14872_unicode_selection(self):
+        """Test catching bug #14872, the unicode string selection failure as 
submitted by Olivier Serve."""
+
+        # Execute the script.
+        self.relax.interpreter.run(script_file=sys.path[-1] + 
sep+'test_suite'+sep+'system_tests'+sep+'scripts'+sep+'bug_14872_unicode_selection.py')
 
 
     def test_bugs_12582_12591_12607(self):

Added: 1.3/test_suite/system_tests/scripts/bug_14872_unicode_selection.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/system_tests/scripts/bug_14872_unicode_selection.py?rev=10038&view=auto
==============================================================================
--- 1.3/test_suite/system_tests/scripts/bug_14872_unicode_selection.py (added)
+++ 1.3/test_suite/system_tests/scripts/bug_14872_unicode_selection.py Wed 
Dec  2 14:14:54 2009
@@ -1,0 +1,32 @@
+"""This system test catches the unicode selection bug submitted by Olivier 
Serve.
+
+The bug is:
+    - Bug #14872 (https://gna.org/bugs/?14872).
+"""
+
+# Python module imports.
+from os import sep
+import sys
+
+
+# Path of the files.
+path = sys.path[-1] + 
sep+'test_suite'+sep+'shared_data'+sep+'model_free'+sep+'bug_14872_unicode_selection'
+
+# Set the data pipe names.
+pipes = ['m4', 'm5']
+
+# Loop over the data pipe names.
+for name in pipes:
+    print "\n\n# " + name + " #"
+
+    # Create the data pipe.
+    pipe.create(name, 'mf')
+
+    # Reload precalculated results from the files 'm1/results', etc.
+    results.read(file='results', dir=path+sep+name)
+
+# Model elimination.
+eliminate()
+
+# Model selection.
+model_selection(method='AIC', modsel_pipe='aic')




Related Messages


Powered by MHonArc, Updated Wed Dec 02 14:20:02 2009