When running some tests as part of building an application using pybuilder (pyb) getting this exception:
BUILD FAILED - TypeError: () takes 0 positional arguments but 1 was given (pybuilder/plugins/python/unittest_plugin.py:177)
What could be possibly wrong ? I checked all the class functions, they have "self" as parameters in them. There are no lambda expressions.
The problem was resolved by patching
site-packages/pybuilder/plugins/python/unittest_plugin.py.
The "return runner_generator(stream=output_log_file)" statement was replaced by
"return runner_generator()" in "_create_runner" function.
Python TypeError when executing unit tests