Changes in / [7a3f840:ba2ed54] in sasmodels


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/model_test.py

    r9826f82 rbb4b509  
    4747import sys 
    4848import unittest 
    49  
    50 try: 
    51     from StringIO import StringIO 
    52 except ImportError: # StringIO.StringIO renamed to io.StringIO in Python 3 
    53     from io import StringIO 
    5449 
    5550import numpy as np  # type: ignore 
     
    355350 
    356351    # Build a object to capture and print the test results 
    357     stream = _WritelnDecorator(StringIO())  # Add writeln() method to stream 
     352    stream = _WritelnDecorator(sys.stdout)  # Add writeln() method to stream 
    358353    verbosity = 2 
    359354    descriptions = True 
     
    393388    else: 
    394389        stream.writeln("Note: no test suite created --- this should never happen") 
    395  
    396     output = stream.getvalue() 
    397     stream.close() 
    398     return output 
    399390 
    400391 
Note: See TracChangeset for help on using the changeset viewer.