Changeset c00a797a in sasview for test/sasdataloader


Ignore:
Timestamp:
May 1, 2017 10:23:44 AM (8 years ago)
Author:
GitHub <noreply@…>
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:
658dd57, c551bb3, 0cc77d8
Parents:
b636dfc5 (diff), aaf5e49 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Paul Kienzle <pkienzle@…> (05/01/17 10:23:44)
git-committer:
GitHub <noreply@…> (05/01/17 10:23:44)
Message:

Merge pull request #68 from andyfaff/print

MAINT: print statement to print function

Location:
test/sasdataloader
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • test/sasdataloader/plugins/test_reader.py

    r959eb01 raaf5e49  
    88copyright 2008, University of Tennessee 
    99""" 
     10from __future__ import print_function 
     11 
    1012import os 
    1113import numpy as np 
     
    5961    reader = Reader() 
    6062    output = reader.read("../test/test_data.test") 
    61     print output.x 
     63    print(output.x) 
    6264     
    6365     
  • test/sasdataloader/test/sequence_tests.py

    r959eb01 raaf5e49  
     1from __future__ import print_function 
     2 
    13from DataLoader.loader import Loader 
    24from DataLoader.readers.IgorReader import Reader as igor_reader 
     
    810    out2 = Loader().load("MAR07232_rest.ASC") 
    911    if len(out2.detector)>1: 
    10         print "Consecutive reads using Loader failed" 
     12        print("Consecutive reads using Loader failed") 
    1113 
    1214def consecutive_reader(): 
     
    1416    out2 = igor_reader().read("MAR07232_rest.ASC") 
    1517    if len(out2.detector)>1: 
    16         print "Consecutive reads using Readers failed" 
    17         print out1 
    18         print out2 
     18        print("Consecutive reads using Readers failed") 
     19        print(out1) 
     20        print(out2) 
    1921 
    2022def single_abs(): 
     
    2931    single_igor() 
    3032    single_abs() 
    31     print "Test passed" 
     33    print("Test passed") 
  • test/sasdataloader/test/utest_abs_reader.py

    r17c9436 raaf5e49  
    22    Unit tests for data manipulations 
    33""" 
     4from __future__ import print_function 
    45 
    56import unittest 
     
    309310            self.assertTrue(item.date in ['04-Sep-2007 18:35:02', 
    310311                                          '03-SEP-2006 11:42:47']) 
    311             print item.term 
     312            print(item.term) 
    312313            for t in item.term: 
    313314                if t['name']=="ABS:DSTAND" \ 
     
    368369         
    369370        self.assertEqual(self.data.meta_data['loader'], "CanSAS XML 1D") 
    370         print self.data.errors 
     371        print(self.data.errors) 
    371372        self.assertEqual(len(self.data.errors), 1) 
    372373         
Note: See TracChangeset for help on using the changeset viewer.