Changeset 1a8b91c in sasmodels for sasmodels/model_test.py
- Timestamp:
- Jul 20, 2018 4:30:12 AM (6 years ago)
- Parents:
- 1d9998c (diff), 9b7fac6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - git-author:
- Piotr Rozyczko <piotr.rozyczko@…> (07/20/18 04:30:12)
- git-committer:
- GitHub <noreply@…> (07/20/18 04:30:12)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/model_test.py
r3221de0 r9b7fac6 376 376 stream.writeln(traceback.format_exc()) 377 377 return 378 # Run the test suite379 suite.run(result)380 381 # Print the failures and errors382 for _, tb in result.errors:383 stream.writeln(tb)384 for _, tb in result.failures:385 stream.writeln(tb)386 378 387 379 # Warn if there are no user defined tests. … … 393 385 # iterator since we don't have direct access to the list of tests in the 394 386 # test suite. 387 # In Qt5 suite.run() will clear all tests in the suite after running 388 # with no way of retaining them for the test below, so let's check 389 # for user tests before running the suite. 395 390 for test in suite: 396 391 if not test.info.tests: … … 399 394 else: 400 395 stream.writeln("Note: no test suite created --- this should never happen") 396 397 # Run the test suite 398 suite.run(result) 399 400 # Print the failures and errors 401 for _, tb in result.errors: 402 stream.writeln(tb) 403 for _, tb in result.failures: 404 stream.writeln(tb) 401 405 402 406 output = stream.getvalue()
Note: See TracChangeset
for help on using the changeset viewer.