Skip to content

Commit 4bd3341

Browse files
Add test case for tarfile.open pipe modes
1 parent 39cfcde commit 4bd3341

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

stdlib/@tests/test_cases/check_tarfile.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@
1111
# Test with invalid preset values
1212
tarfile.open("test.tar.xz", "w:xz", preset=-1) # type: ignore
1313
tarfile.open("test.tar.xz", "w:xz", preset=10) # type: ignore
14+
15+
# Test pipe modes
16+
tarfile.open("test.tar.xz", "r|*")
17+
tarfile.open("test.tar.xz", mode="r|*")

0 commit comments

Comments
 (0)