Changeset 7fb471d in sasview for src/sas/qtgui/UnitTesting


Ignore:
Timestamp:
Nov 9, 2017 8:41:56 AM (6 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:
4992ff2
Parents:
cee5c78
git-author:
Piotr Rozyczko <rozyczko@…> (10/27/17 08:49:35)
git-committer:
Piotr Rozyczko <rozyczko@…> (11/09/17 08:41:56)
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
    rcee5c78 r7fb471d  
    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 r7fb471d  
    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.