]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
tests: don't fail on __exit__ if we failed in __enter__
authorVincent Bernat <vincent@bernat.ch>
Thu, 9 Apr 2020 16:12:04 +0000 (18:12 +0200)
committerVincent Bernat <vincent@bernat.ch>
Thu, 9 Apr 2020 16:12:20 +0000 (18:12 +0200)
tests/integration/fixtures/namespaces.py

index a5d62ba3717a8349c2f3d7c48dbdefdc8158bf5d..ad33fd7f157a7cf464b76d0ec01c0ece0746f0be 100644 (file)
@@ -94,6 +94,7 @@ class Namespace(object):
     """
 
     def __init__(self, *namespaces):
+        self.next = []
         self.namespaces = namespaces
         for ns in namespaces:
             assert ns in NAMESPACE_FLAGS