Changeset aaf5e49 in sasview for test/pr_inversion


Ignore:
Timestamp:
May 1, 2017 12:42:59 AM (8 years ago)
Author:
andyfaff
Branches:
master, 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, costrafo411, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
7b15990
Parents:
a1b8fee
Message:

MAINT: few more print instances

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/pr_inversion/test/utest_invertor.py

    r17c9436 raaf5e49  
    66# Disable "too many methods" complaint  
    77# pylint: disable-msg=R0904  
    8  
     8from __future__ import print_function 
    99 
    1010 
     
    240240            self.assertTrue(chi2/51.0<10.0) 
    241241        except: 
    242             print "chi2 =", chi2/51.0 
     242            print("chi2 =", chi2/51.0) 
    243243            raise 
    244244         
     
    268268            self.assertTrue(self.invertor.chi2/len(x)<200.00) 
    269269        except: 
    270             print "Chi2(I(q)) =", self.invertor.chi2/len(x) 
     270            print("Chi2(I(q)) =", self.invertor.chi2/len(x)) 
    271271            raise 
    272272         
     
    302302            self.assertTrue(chi2/51.0<50.0) 
    303303        except: 
    304             print "chi2(P(r)) =", chi2/51.0 
     304            print("chi2(P(r)) =", chi2/51.0) 
    305305            raise 
    306306         
     
    346346            self.assertTrue(self.invertor.chi2>0) 
    347347        except: 
    348             print "Chi2 =", self.invertor.chi2 
     348            print("Chi2 =", self.invertor.chi2) 
    349349            raise 
    350350                             
     
    370370            self.assertTrue(self.invertor.chi2>0) 
    371371        except: 
    372             print "Chi2 =", self.invertor.chi2 
     372            print("Chi2 =", self.invertor.chi2) 
    373373            raise 
    374374         
Note: See TracChangeset for help on using the changeset viewer.