Changeset 99ea1b0 in sasview for src/sas/qtgui/UnitTesting
- Timestamp:
- Oct 27, 2017 6:49:35 AM (7 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:
- 0849aec
- Parents:
- 895e7359
- Location:
- src/sas/qtgui/UnitTesting
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/UnitTesting/TestUtils.py
- Property mode changed from 100644 to 100755
r895e7359 r99ea1b0 10 10 """ 11 11 if method_name is not None: 12 print( "\nWARNING: %s needs implementing!"%method_name)12 print(("\nWARNING: %s needs implementing!"%method_name)) 13 13 else: 14 14 (frame, filename, line_number, 15 15 function_name, lines, index) = inspect.getouterframes(inspect.currentframe())[1] 16 print( "\nWARNING: %s needs implementing!"%function_name)16 print(("\nWARNING: %s needs implementing!"%function_name)) 17 17 18 18 class QtSignalSpy(QObject): … … 39 39 except AttributeError: 40 40 msg = "Wrong construction of QtSignalSpy instance" 41 raise RuntimeError , msg41 raise RuntimeError(msg) 42 42 43 43 def slot(self, *args, **kwargs): -
src/sas/qtgui/UnitTesting/TestUtilsTest.py
r464cd07 r99ea1b0 5 5 from PyQt4.QtTest import QTest 6 6 from PyQt4.QtCore import * 7 from mock import MagicMock7 from unittest.mock import MagicMock 8 8 9 9 # Local
Note: See TracChangeset
for help on using the changeset viewer.