|
26 | 26 | import tempfile
|
27 | 27 | import unittest
|
28 | 28 | from subprocess import PIPE, Popen
|
29 |
| -from test import support |
30 | 29 | from test.support import _4G, bigmemtest
|
31 | 30 | from test.support.script_helper import assert_python_failure, assert_python_ok
|
32 | 31 |
|
@@ -408,8 +407,8 @@ def test_compresslevel_metadata(self):
|
408 | 407 |
|
409 | 408 | for (name, level, expectedXflByte) in cases:
|
410 | 409 | 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 |
413 | 412 | and hasattr(gzip, "_COMPRESS_LEVEL_FAST")
|
414 | 413 | and hasattr(gzip, "_COMPRESS_LEVEL_TRADEOFF")):
|
415 | 414 | # Specific xfl bytes introduced in 3.9 and backported to
|
@@ -808,7 +807,7 @@ def test_decompress_infile_outfile(self):
|
808 | 807 |
|
809 | 808 | with igzip.open(igzipname, mode='wb') as fp:
|
810 | 809 | fp.write(self.data)
|
811 |
| - sys.argv = [ '', '-d', igzipname] |
| 810 | + sys.argv = ['', '-d', igzipname] |
812 | 811 | igzip.main()
|
813 | 812 |
|
814 | 813 | with open(os.path.join(TEMPDIR, "testigzip"), "rb") as gunziped:
|
|
0 commit comments