Skip to content

The current testing framework verbose output is hard to understand and looks like garbage in Python 3.

James Browning requested to merge (removed):2022D20-test-clarify-py3 into master

STR:

  • Configure and build in Python 3 as per usual
  • run "./waf check -v"

AR: output is hard to parse and bad looking ER: output should be easy to parse and easy on the eyes.

BINARY      : /home/jamesb/ntpsec/build/main/tests/pylib/test_util.py
RETURN VALUE: 0

****** ERROR ******
 
b'/home/jamesb/ntpsec/build/main/tests/pylib/test_util.py:1364: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()\n  if "msg" in inspect.getargspec(classy.assertEqual).args:\n.............................................\n----------------------------------------------------------------------\nRan 45 tests in 0.007s\n\nOK\n'

before clip versus after clip

BINARY      : /home/jamesb/ntpsec/build/main/tests/pylib/test_util.py
RETURN VALUE: 0

****** ERROR ******
 

*** stdout ***



*** stderr ***

/home/jamesb/ntpsec/build/main/tests/pylib/test_util.py:1364: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec()
  if "msg" in inspect.getargspec(classy.assertEqual).args:
.............................................
----------------------------------------------------------------------
Ran 45 tests in 0.007s

OK

waf-test-before.log

waf-test-after.log

Merge request reports