Changes in / [ba2ed54:7a3f840] in sasmodels
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/model_test.py
rbb4b509 r9826f82 47 47 import sys 48 48 import 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 49 54 50 55 import numpy as np # type: ignore … … 350 355 351 356 # Build a object to capture and print the test results 352 stream = _WritelnDecorator( sys.stdout) # Add writeln() method to stream357 stream = _WritelnDecorator(StringIO()) # Add writeln() method to stream 353 358 verbosity = 2 354 359 descriptions = True … … 388 393 else: 389 394 stream.writeln("Note: no test suite created --- this should never happen") 395 396 output = stream.getvalue() 397 stream.close() 398 return output 390 399 391 400
Note: See TracChangeset
for help on using the changeset viewer.