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

Fix warnings during integration tests #2847

Closed
hmpf opened this issue Feb 29, 2024 · 0 comments · Fixed by #2858
Closed

Fix warnings during integration tests #2847

hmpf opened this issue Feb 29, 2024 · 0 comments · Fixed by #2858
Assignees
Labels

Comments

@hmpf
Copy link
Contributor

hmpf commented Feb 29, 2024

tests/integration/statemondb_test.py::test_get_checkers_does_not_raise
  /source/python/nav/statemon/db.py:76: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
    self.setDaemon(1)

tests/integration/watchdog_test.py::test_get_status_cache_does_not_raise
  /source/.tox/integration-py310-django32/lib/python3.10/site-packages/django/core/cache/backends/filebased.py:36: RuntimeWarning: Pickled model instance's Django version 3.2.23 does not match the current version 3.2.24.
    return pickle.loads(zlib.decompress(f.read()))

tests/integration/ipdevpoll/pool_test.py: 13 warnings
tests/integration/ipdevpoll/plugins/juniper_alarm_test.py: 75 warnings
tests/integration/ipdevpoll/plugins/snmpcheck_test.py: 7 warnings
  /source/python/nav/ipdevpoll/jobs.py:527: DeprecationWarning: isSet() is deprecated, use is_set() instead
    if self.cancelled.isSet():

tests/integration/ipdevpoll/pool_test.py: 2 warnings
tests/integration/ipdevpoll/plugins/juniper_alarm_test.py: 12 warnings
tests/integration/ipdevpoll/plugins/snmpcheck_test.py: 1 warning
  /source/python/nav/ipdevpoll/jobs.py:322: DeprecationWarning: isSet() is deprecated, use is_set() instead
    if self.cancelled.isSet():
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants