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