Skip to content

Commit fc96131

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent dff5232 commit fc96131

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/_pytest/runner.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,9 @@ def _update_current_test_var(
213213
# is not atomic or thread-safe, unlike e.g. popping from a builtin dict.
214214
try:
215215
os.environ.pop(var_name)
216-
except KeyError: # pragma: no cover # can be removed when #13768 is farther along
216+
except (
217+
KeyError
218+
): # pragma: no cover # can be removed when #13768 is farther along
217219
pass
218220

219221

0 commit comments

Comments
 (0)