The following warning appears in the unit test logs a number of times.
"UserWarning: This test uses methods that set internal oslo_db
state, but it does not claim to use the database. This will conflict
with the setup of tests that do use the database and cause failures
later."
This patch fixes all the warnings from:
nova.tests.unit.compute.test_compute.py
Note that this warning is only emitted once per unit test worker, so new
offenders will show up in the logs each time you fix a test until they
are all gone.
Reviewed: https:/ /review. openstack. org/377001 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=95449065710 04f59ba9f3ab2ea b9de7878b95a9a
Committed: https:/
Submitter: Jenkins
Branch: master
commit 9544906571004f5 9ba9f3ab2eab9de 7878b95a9a
Author: Diana Clarke <email address hidden>
Date: Mon Sep 26 14:18:12 2016 -0400
Fix database poison warnings, part 20
The following warning appears in the unit test logs a number of times.
state, but it does not claim to use the database. This will conflict
with the setup of tests that do use the database and cause failures
later."
This patch fixes all the warnings from:
Note that this warning is only emitted once per unit test worker, so new
offenders will show up in the logs each time you fix a test until they
are all gone.
Change-Id: I4f3679bf97ec02 40ede5beaf202ee 3c60c230a8a
Related-Bug: #1568414