Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb528499

Browse files
authored
gh-70441: Fix test_tarfile on systems w/o bz2 (gh-2962) (#94258)
1 parent50cd4b6 commitb528499

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎Lib/test/test_tarfile.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1613,6 +1613,7 @@ def test_compresslevel_wrong_modes(self):
16131613
withself.assertRaises(TypeError):
16141614
tarfile.open(tmpname,"w:",fobj,compresslevel=compresslevel)
16151615

1616+
@support.requires_bz2()
16161617
deftest_wrong_compresslevels(self):
16171618
# BZ2 checks that the compresslevel is in [1,9]. gz does not
16181619
fobj=io.BytesIO()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp