From 0ca939b05e05169d42578b55d0939966979879f2 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Thu, 9 Apr 2020 18:12:04 +0200 Subject: [PATCH] tests: don't fail on __exit__ if we failed in __enter__ --- tests/integration/fixtures/namespaces.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/integration/fixtures/namespaces.py b/tests/integration/fixtures/namespaces.py index a5d62ba3..ad33fd7f 100644 --- a/tests/integration/fixtures/namespaces.py +++ b/tests/integration/fixtures/namespaces.py @@ -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 -- 2.39.5