Skip to content

Commit ba89105

Browse files
committed
Linting fixes
1 parent 2ba3f8b commit ba89105

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/test_gzip_compliance.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import tempfile
2727
import unittest
2828
from subprocess import PIPE, Popen
29-
from test import support
3029
from test.support import _4G, bigmemtest
3130
from test.support.script_helper import assert_python_failure, assert_python_ok
3231

@@ -408,8 +407,8 @@ def test_compresslevel_metadata(self):
408407

409408
for (name, level, expectedXflByte) in cases:
410409
major, minor, _, _, _ = sys.version_info
411-
if not (
412-
"compresslevel" in gzip.GzipFile._write_gzip_header.__code__.co_varnames
410+
if not ("compresslevel" in
411+
gzip.GzipFile._write_gzip_header.__code__.co_varnames
413412
and hasattr(gzip, "_COMPRESS_LEVEL_FAST")
414413
and hasattr(gzip, "_COMPRESS_LEVEL_TRADEOFF")):
415414
# Specific xfl bytes introduced in 3.9 and backported to
@@ -808,7 +807,7 @@ def test_decompress_infile_outfile(self):
808807

809808
with igzip.open(igzipname, mode='wb') as fp:
810809
fp.write(self.data)
811-
sys.argv = [ '', '-d', igzipname]
810+
sys.argv = ['', '-d', igzipname]
812811
igzip.main()
813812

814813
with open(os.path.join(TEMPDIR, "testigzip"), "rb") as gunziped:

0 commit comments

Comments
 (0)