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

Django-Jenkins: library ISSUE --- TypeError: init() got an unexpected keyword argument 'exit' #378

Open
susz007 opened this issue Apr 28, 2020 · 0 comments

Comments

@susz007
Copy link

susz007 commented Apr 28, 2020

Steps to reproduce

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

django-Jenkins --version output

0.110.0

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)

@susz007 susz007 changed the title TypeError: init() got an unexpected keyword argument 'exit' Django-Jenkins: library ISSUE --- TypeError: init() got an unexpected keyword argument 'exit' Apr 28, 2020
matthew-hodgins added a commit to matthew-hodgins/django-jenkins that referenced this issue Jul 2, 2020
Pylint changed the arguments to Run()
matthew-hodgins added a commit to matthew-hodgins/django-jenkins that referenced this issue Jul 2, 2020
This reverts commit ac9eb7c.
matthew-hodgins added a commit to matthew-hodgins/django-jenkins that referenced this issue Jul 2, 2020
Pylint changed the arguments to the Run() method.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant