Ignore:
Timestamp:
Jan 16, 2017, 4:38:32 PM (2 years ago)
Author:
hongpum
Message:

Minor changes to make the test scripts compatible with py3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/QA/editd/run_all.py

    r5225 r5262  
    77        option_parser.add_option('-e', '--exec_dir', dest = 'exec_dir', type='string', default='.', help = 'executable directory')
    88        options, args = option_parser.parse_args(sys.argv[1:])
    9         print options.exec_dir
     9        print(options.exec_dir)
    1010        out_f = open('OutputFiles/reads2', 'w')
    1111        expected_f = open('ExpectedOutput/reads2', 'r')
    1212        call([options.exec_dir+'/editd', '-f', 'TestFiles/reads2', 'chr.fa', '-display'], stdout=out_f)
    1313        if open('OutputFiles/reads2', 'r').read()==expected_f.read():
    14                 print 'Edit Distance test succeeded.'
     14                print('Edit Distance test succeeded.')
    1515        else:
    16                 print 'Edit Distance test failed.'     
     16                print('Edit Distance test failed.')
    1717                exit(1)
Note: See TracChangeset for help on using the changeset viewer.