[py-svn] py-trunk commit 8a8f2ba6f266: fix a flaky test

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Tue Nov 24 10:49:49 CET 2009


# HG changeset patch -- Bitbucket.org
# Project py-trunk
# URL http://bitbucket.org/hpk42/py-trunk/overview/
# User holger krekel <holger at merlinux.eu>
# Date 1258707880 -3600
# Node ID 8a8f2ba6f266f6ea9a555621df711122d048af1c
# Parent d7614a65d21983e9e1cd8df199f0d8c7a8f024ea
fix a flaky test

--- a/testing/pytest/dist/test_gwmanage.py
+++ b/testing/pytest/dist/test_gwmanage.py
@@ -82,7 +82,7 @@ class TestGatewayManagerPopen:
         call = hookrecorder.popcall("pytest_gwmanage_rsyncstart") 
         assert call.source == source 
         assert len(call.gateways) == 1
-        assert hm.group["1"] == call.gateways[0]
+        assert call.gateways[0] in hm.group
         call = hookrecorder.popcall("pytest_gwmanage_rsyncfinish") 
 
 class pytest_funcarg__mysetup:



More information about the pytest-commit mailing list