Changes in / [997c9ca:f0e09d6] in sasmodels


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/model_test.py

    rbb4b509 rf2cbeb7  
    4747import sys 
    4848import unittest 
     49from StringIO import StringIO 
    4950 
    5051import numpy as np  # type: ignore 
     
    350351 
    351352    # Build a object to capture and print the test results 
    352     stream = _WritelnDecorator(sys.stdout)  # Add writeln() method to stream 
     353    stream = _WritelnDecorator(StringIO())  # Add writeln() method to stream 
    353354    verbosity = 2 
    354355    descriptions = True 
     
    388389    else: 
    389390        stream.writeln("Note: no test suite created --- this should never happen") 
     391 
     392    output = stream.getvalue() 
     393    stream.close() 
     394    return output 
    390395 
    391396 
Note: See TracChangeset for help on using the changeset viewer.