Skip to content

silence logs/warnings in unittests #519

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

Merged
merged 1 commit into from
Jun 7, 2018
Merged

silence logs/warnings in unittests #519

merged 1 commit into from
Jun 7, 2018

Conversation

jouve
Copy link
Contributor

@jouve jouve commented Jun 7, 2018

before

............foobar
./home/cjouve/work/gitlab/python-gitlab/gitlab/cli.py:123: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/tmporr_ffy7' mode='r' encoding='UTF-8'>
  return open(v[1:]).read()
[Errno 2] No such file or directory: '/thisfileprobablydoesntexist'
......./usr/lib/python3.6/unittest/case.py:1126: DeprecationWarning: assertDictContainsSubset is deprecated
  DeprecationWarning)
....................................................................
----------------------------------------------------------------------
Ran 88 tests in 0.562s

OK

after:

........................................................................................
----------------------------------------------------------------------
Ran 88 tests in 0.533s

OK

@gpocentek
Copy link
Contributor

Awesome, thanks 👍

@gpocentek gpocentek merged commit bbefb99 into python-gitlab:master Jun 7, 2018
@jouve jouve deleted the silence branch June 7, 2018 21:13
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

Successfully merging this pull request may close these issues.

2 participants