Changeset db5cd8d in sasview for src/sas/qtgui/UnitTesting/TestUtils.py
- Timestamp:
- Jan 12, 2017 4:09:23 AM (8 years ago)
- Branches:
- ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- 2e3e959
- Parents:
- 87cc73a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/UnitTesting/TestUtils.py
r87cc73a rdb5cd8d 2 2 from PyQt4.QtGui import * 3 3 from PyQt4.QtTest import * 4 import inspect 4 5 5 def WarningNotImplemented(method_name): 6 """ Prints warning about a non-implemented test """ 7 print("\nWARNING: %s needs implementing!"%method_name) 6 def WarningTestNotImplemented(method_name=None): 7 """ 8 Prints warning about a non-implemented test. 9 Test name retrieved from stack trace. 10 """ 11 if method_name is not None: 12 print("\nWARNING: %s needs implementing!"%method_name) 13 else: 14 (frame, filename, line_number, 15 function_name, lines, index) = inspect.getouterframes(inspect.currentframe())[1] 16 print("\nWARNING: %s needs implementing!"%function_name) 8 17 9 18 class QtSignalSpy(QObject):
Note: See TracChangeset
for help on using the changeset viewer.