1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
From: Bastian Germann <bage@debian.org>
Date: Fri, 7 Mar 2025 14:20:33 +0100
Subject: tests: Drop U mode from xopen (dropped in py3.11)
---
diff --git a/tests/test_xphyle.py b/tests/test_xphyle.py
index 3cea923..e3a2844 100644
--- a/tests/test_xphyle.py
+++ b/tests/test_xphyle.py
@@ -194,7 +194,7 @@ class XphyleTests(TestCase):
with self.assertRaises(IOError):
xopen("foobar", "r")
path = self.root.make_file(suffix=".gz")
- with xopen(path, "rU", context_wrapper=True) as i:
+ with xopen(path, "r", context_wrapper=True) as i:
assert "rt" == i.mode
with xopen(path, "w", compression=True, context_wrapper=True) as o:
assert cast(FileLikeWrapper, o).compression == "gzip"
|