Author: bugman
Date: Tue Feb 3 10:26:56 2015
New Revision: 27451
URL: http://svn.gna.org/viewcvs/relax?rev=27451&view=rev
Log:
Simplification of the Dead_uf_pages.test_mol_create GUI test.
The RelaxError cannot be caught from the GUI user function window, therefore
the try statement has
been eliminated.
Modified:
trunk/test_suite/gui_tests/dead_uf_pages.py
Modified: trunk/test_suite/gui_tests/dead_uf_pages.py
URL:
http://svn.gna.org/viewcvs/relax/trunk/test_suite/gui_tests/dead_uf_pages.py?rev=27451&r1=27450&r2=27451&view=diff
==============================================================================
--- trunk/test_suite/gui_tests/dead_uf_pages.py (original)
+++ trunk/test_suite/gui_tests/dead_uf_pages.py Tue Feb 3 10:26:56 2015
@@ -1,6 +1,6 @@
###############################################################################
# #
-# Copyright (C) 2012-2013 Edward d'Auvergne #
+# Copyright (C) 2012-2015 Edward d'Auvergne #
# #
# This file is part of the program relax (http://www.nmr-relax.com). #
# #
@@ -41,12 +41,7 @@
"""Test a failure detected via the molecule.create user function."""
# First try to create a molecule (this will fail due to no data pipes
being present).
- try:
- # Call the object.
- self._execute_uf(uf_name='molecule.create', mol_name='x',
mol_type='protein')
- except RelaxNoPipeError:
- instance = sys.exc_info()[1]
- sys.stderr.write(instance.__str__())
+ self._execute_uf(uf_name='molecule.create', mol_name='x',
mol_type='protein')
# Create a data pipe.
self._execute_uf(uf_name='pipe.create', pipe_name='test',
pipe_type='mf')
_______________________________________________
relax (http://www.nmr-relax.com)
This is the relax-commits mailing list
[email protected]
To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits