Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: __init__() got an unexpected keyword argument 'exit' #3533

Closed
susz007 opened this issue Apr 28, 2020 · 1 comment
Closed

TypeError: __init__() got an unexpected keyword argument 'exit' #3533

susz007 opened this issue Apr 28, 2020 · 1 comment

Comments

@susz007
Copy link

susz007 commented Apr 28, 2020

Steps to reproduce

  1. python manage.py jenkins --enable-coverage

Current behavior

(venv) D:\Repository\GIT\VICAS\api>python manage.py jenkins --enable-coverage
System check identified no issues (0 silenced).
............................

Ran 28 tests in 239.656s

OK
Storing coverage info...
Executing django_jenkins.tasks.run_pylint...
Traceback (most recent call last):
File "manage.py", line 21, in
main()
File "manage.py", line 17, in main
execute_from_command_line(sys.argv)
File "D:\Repository\GIT\VICAS\api\venv\lib\site-packages\django\core\management_init_.py", line 381, in execute_from_command_line
utility.execute()
File "D:\Repository\GIT\VICAS\api\venv\lib\site-packages\django\core\management_init_.py", line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "D:\Repository\GIT\VICAS\api\venv\lib\site-packages\django_jenkins\management\commands\jenkins.py", line 47, in run_from_argv
super(Command, self).run_from_argv(argv)
File "D:\Repository\GIT\VICAS\api\venv\lib\site-packages\django\core\management\commands\test.py", line 23, in run_from_argv
super().run_from_argv(argv)
File "D:\Repository\GIT\VICAS\api\venv\lib\site-packages\django\core\management\base.py", line 323, in run_from_argv
self.execute(*args, **cmd_options)
File "D:\Repository\GIT\VICAS\api\venv\lib\site-packages\django\core\management\base.py", line 364, in execute
output = self.handle(*args, **options)
File "D:\Repository\GIT\VICAS\api\venv\lib\site-packages\django_jenkins\management\commands\jenkins.py", line 116, in handle
coverage.save(tested_locations, options)
File "D:\Repository\GIT\VICAS\api\venv\lib\site-packages\django_jenkins\tasks\run_pylint.py", line 44, in run
lint.Run(args, reporter=ParseableTextReporter(output=output), exit=False)
TypeError: init() got an unexpected keyword argument 'exit'

Expected behavior

(venv) D:\Repository\GIT\VICAS\api>python manage.py jenkins --enable-coverage
System check identified no issues (0 silenced).
............................

Ran 28 tests in 242.236s

OK
Storing coverage info...
Executing django_jenkins.tasks.run_pylint...
Done

pylint --version output

2.4

FIX
I fixed the file manually by changing run_pylint.py

   ` lint.Run(args, reporter=ParseableTextReporter(output=output), exit=False)`

changed to

   ` lint.Run(args, reporter=ParseableTextReporter(output=output), do_exit=False)

`

PCManticore added a commit that referenced this issue May 1, 2020
This has been inadvertently changed several releases ago to ``do_exit``.

Close #3533
@PCManticore
Copy link
Contributor

Thank you for the report! This should be fixed with 2.5.1 once this PR lands #3554.

PCManticore added a commit that referenced this issue May 1, 2020
This has been inadvertently changed several releases ago to ``do_exit``.

Close #3533
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants