Skip to content

Commit 111f095

Browse files
committed
plugin_updater: fix pkgfixture usage
pkgfixture stuff must *always* be used from conftest.py, or else strange problems appear because of the result shown in pytest-dev/pytest#8189 (comment) For this case it results in a test failure when test ordering changes, because of a safeguard added to the fixture. And "stop using a test parameter for sr_disk" commit does cause such a change in test ordering. Signed-off-by: Yann Dirson <[email protected]>
1 parent e2f657c commit 111f095

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from pkgfixtures import host_with_saved_yum_state

tests/xapi-plugins/plugin_updater/test_updater.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from pkgfixtures import host_with_saved_yum_state
21
import json
32

43
# Requirements:

0 commit comments

Comments
 (0)