Changeset 99ea1b0 in sasview for src/sas/qtgui/UnitTesting


Ignore:
Timestamp:
Oct 27, 2017 6:49:35 AM (7 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
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
Message:

Update for unit tests and minor functionality quirks

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  
    1010    """ 
    1111    if method_name is not None: 
    12         print("\nWARNING: %s needs implementing!"%method_name) 
     12        print(("\nWARNING: %s needs implementing!"%method_name)) 
    1313    else: 
    1414        (frame, filename, line_number, 
    1515            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)) 
    1717 
    1818class QtSignalSpy(QObject): 
     
    3939        except AttributeError: 
    4040            msg = "Wrong construction of QtSignalSpy instance" 
    41             raise RuntimeError, msg 
     41            raise RuntimeError(msg) 
    4242 
    4343    def slot(self, *args, **kwargs): 
  • src/sas/qtgui/UnitTesting/TestUtilsTest.py

    r464cd07 r99ea1b0  
    55from PyQt4.QtTest import QTest 
    66from PyQt4.QtCore import * 
    7 from mock import MagicMock 
     7from unittest.mock import MagicMock 
    88 
    99# Local 
Note: See TracChangeset for help on using the changeset viewer.