Author: bugman Date: Fri Sep 26 18:59:50 2014 New Revision: 26073 URL: http://svn.gna.org/viewcvs/relax?rev=26073&view=rev Log: Merged revisions 26043 via svnmerge from svn+ssh://bugman@xxxxxxxxxxx/svn/relax/trunk ........ r26043 | bugman | 2014-09-26 09:37:41 +0200 (Fri, 26 Sep 2014) | 9 lines Created the Bmrb.test_bug_22703_display_empty system and GUI test. This system test catches bug #22703 (https://gna.org/bugs/?22703), the failure of the bmrb.display user function with an AttributeError when no data is present. It is simultaneously a system and GUI test, as the GUI test class inherits directly from the system test class. ........ Modified: branches/frame_order_cleanup/ (props changed) branches/frame_order_cleanup/test_suite/system_tests/bmrb.py Propchange: branches/frame_order_cleanup/ ------------------------------------------------------------------------------ --- svnmerge-integrated (original) +++ svnmerge-integrated Fri Sep 26 18:59:50 2014 @@ -1 +1 @@ -/trunk:1-26017 +/trunk:1-26017,26043 Modified: branches/frame_order_cleanup/test_suite/system_tests/bmrb.py URL: http://svn.gna.org/viewcvs/relax/branches/frame_order_cleanup/test_suite/system_tests/bmrb.py?rev=26073&r1=26072&r2=26073&view=diff ============================================================================== --- branches/frame_order_cleanup/test_suite/system_tests/bmrb.py (original) +++ branches/frame_order_cleanup/test_suite/system_tests/bmrb.py Fri Sep 26 18:59:50 2014 @@ -253,6 +253,23 @@ self.assertRaises(RelaxError, self.interpreter.bmrb.read, file='17226.txt', dir=path, version=None, sample_conditions=None) + def test_bug_22703_display_empty(self): + """Catch U{bug #22703<https://gna.org/bugs/?22703>}, the failure of the bmrb.display user function with an AttributeError when no data is present.""" + + # Create the data pipe. + self.interpreter.pipe.create('test', 'mf') + + # Display. + self.interpreter.bmrb.display(version='3.1') + + # Reset and create a new data pipe. + self.interpreter.reset() + self.interpreter.pipe.create('test2', 'mf') + + # Display again to show a GUI breakage. + self.interpreter.bmrb.display(version='3.1') + + def test_rw_bmrb_3_0_model_free(self): """Write and then read a BRMB STAR formatted file containing model-free results."""