From 345918bd272d1792aa9fca86f3ac6a2d516cdb28 Mon Sep 17 00:00:00 2001 From: Peter Kroon Date: Tue, 3 Oct 2023 13:47:30 +0200 Subject: [PATCH] Apparently using brackets to group context managers is py3.10+... --- vermouth/tests/test_dssp.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vermouth/tests/test_dssp.py b/vermouth/tests/test_dssp.py index cb6f06d6..cbc9c3ad 100644 --- a/vermouth/tests/test_dssp.py +++ b/vermouth/tests/test_dssp.py @@ -397,8 +397,7 @@ def test_run_dssp(savefile, tmpdir): assert len(foundfile) == 1 foundfile = foundfile[0] - with (open(foundfile, encoding="utf-8") as genfile, - open(str(DSSP_OUTPUT), encoding="utf-8") as reffile): + with open(foundfile, encoding="utf-8") as genfile, open(str(DSSP_OUTPUT), encoding="utf-8") as reffile: # DSSP 3 is outputs mostly the same thing as DSSP2, though there # are some differences in non significant whitespaces, and an extra # field header. We need to normalize these differences to be able