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

Appearance settings

[3.7] bpo-20239: Allow repeated deletion of unittest.mock.Mock attributes (GH-11057) #11629

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 21, 2019

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jan 21, 2019

  • Allow repeated deletion of unittest.mock.Mock attributes

  • fixup! Allow repeated deletion of unittest.mock.Mock attributes

  • fixup! fixup! Allow repeated deletion of unittest.mock.Mock attributes
    (cherry picked from commit 222d303)

Co-authored-by: Pablo Galindo Pablogsal@gmail.com

https://bugs.python.org/issue20239

…ythonGH-11057)

* Allow repeated deletion of unittest.mock.Mock attributes

* fixup! Allow repeated deletion of unittest.mock.Mock attributes

* fixup! fixup! Allow repeated deletion of unittest.mock.Mock attributes
(cherry picked from commit 222d303)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
@miss-islington
Copy link
Contributor Author

@pablogsal and @cjw296: Status check is done, and it's a success ✅ .

@python python deleted a comment from miss-islington Jan 21, 2019
@cjw296 cjw296 merged commit d358a8c into python:3.7 Jan 21, 2019
@miss-islington miss-islington deleted the backport-222d303-3.7 branch January 21, 2019 09:37
@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot AMD64 Windows7 SP1 3.7 has failed when building commit d358a8c.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/130/builds/636) and take a look at the build logs.
  4. Check if the failure is related to this commit (d358a8c) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/130/builds/636

Click to see traceback logs
From https://github.com/python/cpython
 * branch            3.7        -> FETCH_HEAD
Reset branch '3.7'

Could Not Find C:\buildbot.python.org\3.7.kloth-win64\build\Lib\*.pyc
The system cannot find the file specified.
Could Not Find C:\buildbot.python.org\3.7.kloth-win64\build\PCbuild\python*.zip

test_tix skipped -- gui not available (WSF_VISIBLE flag not set)
test_readline skipped -- No module named 'readline'
minkernel\crts\ucrt\src\appcrt\lowio\write.cpp(50) : Assertion failed: (_osfile(fh) & FOPEN)
test_ttk_guionly skipped -- gui not available (WSF_VISIBLE flag not set)
test_xxtestfuzz skipped -- No module named '_xxtestfuzz'
test_kqueue skipped -- test works only on BSD
test_ossaudiodev skipped -- No module named 'ossaudiodev'
minkernel\crts\ucrt\src\appcrt\lowio\write.cpp(50) : Assertion failed: (_osfile(fh) & FOPEN)
minkernel\crts\ucrt\src\appcrt\lowio\close.cpp(49) : Assertion failed: (_osfile(fh) & FOPEN)
minkernel\crts\ucrt\src\appcrt\lowio\close.cpp(49) : Assertion failed: (_osfile(fh) & FOPEN)
test_cmdline_copy (test.test_zipapp.ZipAppCmdlineTest) ... ok
test_cmdline_copy_change_main (test.test_zipapp.ZipAppCmdlineTest) ... ok
test_cmdline_copy_inplace (test.test_zipapp.ZipAppCmdlineTest) ... ok
test_cmdline_create (test.test_zipapp.ZipAppCmdlineTest) ... ok
test_info_command (test.test_zipapp.ZipAppCmdlineTest) ... ok
test_info_error (test.test_zipapp.ZipAppCmdlineTest) ... ok
test_content_of_copied_archive (test.test_zipapp.ZipAppTest) ... ok
test_create_archive (test.test_zipapp.ZipAppTest) ... ok
test_create_archive_default_target (test.test_zipapp.ZipAppTest) ... ok
test_create_archive_filter_exclude_dir (test.test_zipapp.ZipAppTest) ... ERROR
test_create_archive_with_compression (test.test_zipapp.ZipAppTest) ... ERROR
test_create_archive_with_filter (test.test_zipapp.ZipAppTest) ... ok
test_create_archive_with_pathlib (test.test_zipapp.ZipAppTest) ... ok
test_create_archive_with_subdirs (test.test_zipapp.ZipAppTest) ... ok
test_custom_interpreter (test.test_zipapp.ZipAppTest) ... ok
test_default_no_shebang (test.test_zipapp.ZipAppTest) ... ok
test_main_and_main_py (test.test_zipapp.ZipAppTest) ... ok
test_main_only_written_once (test.test_zipapp.ZipAppTest) ... ERROR
test_main_validation (test.test_zipapp.ZipAppTest) ... ok
test_main_written (test.test_zipapp.ZipAppTest) ... ERROR
test_modify_shebang (test.test_zipapp.ZipAppTest) ... ok
test_no_main (test.test_zipapp.ZipAppTest) ... ok
test_no_shebang_is_not_executable (test.test_zipapp.ZipAppTest) ... skipped 'Windows does not support an executable bit'
test_pack_to_fileobj (test.test_zipapp.ZipAppTest) ... ok
test_read_from_fileobj (test.test_zipapp.ZipAppTest) ... ok
test_read_from_pathobj (test.test_zipapp.ZipAppTest) ... ok
test_read_missing_shebang (test.test_zipapp.ZipAppTest) ... ok
test_read_shebang (test.test_zipapp.ZipAppTest) ... ok
test_remove_shebang (test.test_zipapp.ZipAppTest) ... ok
test_shebang_is_executable (test.test_zipapp.ZipAppTest) ... skipped 'Windows does not support an executable bit'
test_write_shebang_to_fileobj (test.test_zipapp.ZipAppTest) ... ok

======================================================================
ERROR: test_create_archive_filter_exclude_dir (test.test_zipapp.ZipAppTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\tempfile.py", line 809, in cleanup
    _shutil.rmtree(self.name)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\shutil.py", line 513, in rmtree
    return _rmtree_unsafe(path, onerror)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\shutil.py", line 401, in _rmtree_unsafe
    onerror(os.rmdir, path, sys.exc_info())
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\shutil.py", line 399, in _rmtree_unsafe
    os.rmdir(path)
OSError: [WinError 145] The directory is not empty: 'C:\\Users\\Buildbot\\AppData\\Local\\Temp\\tmpcrcon1fv'

======================================================================
ERROR: test_create_archive_with_compression (test.test_zipapp.ZipAppTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\tempfile.py", line 809, in cleanup
    _shutil.rmtree(self.name)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\shutil.py", line 513, in rmtree
    return _rmtree_unsafe(path, onerror)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\shutil.py", line 401, in _rmtree_unsafe
    onerror(os.rmdir, path, sys.exc_info())
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\shutil.py", line 399, in _rmtree_unsafe
    os.rmdir(path)
OSError: [WinError 145] The directory is not empty: 'C:\\Users\\Buildbot\\AppData\\Local\\Temp\\tmppxwpb0m9'

======================================================================
ERROR: test_main_only_written_once (test.test_zipapp.ZipAppTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\tempfile.py", line 809, in cleanup
    _shutil.rmtree(self.name)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\shutil.py", line 513, in rmtree
    return _rmtree_unsafe(path, onerror)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\shutil.py", line 401, in _rmtree_unsafe
    onerror(os.rmdir, path, sys.exc_info())
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\shutil.py", line 399, in _rmtree_unsafe
    os.rmdir(path)
OSError: [WinError 145] The directory is not empty: 'C:\\Users\\Buildbot\\AppData\\Local\\Temp\\tmpyb6pvz67'

======================================================================
ERROR: test_main_written (test.test_zipapp.ZipAppTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\tempfile.py", line 809, in cleanup
    _shutil.rmtree(self.name)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\shutil.py", line 513, in rmtree
    return _rmtree_unsafe(path, onerror)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\shutil.py", line 401, in _rmtree_unsafe
    onerror(os.rmdir, path, sys.exc_info())
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\shutil.py", line 399, in _rmtree_unsafe
    os.rmdir(path)
OSError: [WinError 145] The directory is not empty: 'C:\\Users\\Buildbot\\AppData\\Local\\Temp\\tmp3iayz5je'

----------------------------------------------------------------------

Ran 31 tests in 0.191s

FAILED (errors=4, skipped=2)
test test_zipapp failed
test_read_with_bad_crc (test.test_zipfile.Bzip2BadCrcTests)
Tests that files with bad CRCs raise a BadZipFile exception when read. ... ok
test_testzip_with_bad_crc (test.test_zipfile.Bzip2BadCrcTests)
Tests that files with bad CRCs return their name from testzip. ... ok
test_basic (test.test_zipfile.Bzip2TestZip64InSmallFiles) ... ok
test_too_many_files (test.test_zipfile.Bzip2TestZip64InSmallFiles) ... ok
test_too_many_files_append (test.test_zipfile.Bzip2TestZip64InSmallFiles) ... ok
test_open (test.test_zipfile.Bzip2TestsWithRandomBinaryFiles) ... ok
test_random_open (test.test_zipfile.Bzip2TestsWithRandomBinaryFiles) ... ok
test_read (test.test_zipfile.Bzip2TestsWithRandomBinaryFiles) ... ok
test_basic (test.test_zipfile.Bzip2TestsWithSourceFile) ... ok
test_compresslevel_basic (test.test_zipfile.Bzip2TestsWithSourceFile) ... ok
test_iterlines (test.test_zipfile.Bzip2TestsWithSourceFile) ... ok
test_low_compression (test.test_zipfile.Bzip2TestsWithSourceFile)
Check for cases where compressed data is larger than original. ... ok
test_open (test.test_zipfile.Bzip2TestsWithSourceFile) ... ok
test_open_with_pathlike (test.test_zipfile.Bzip2TestsWithSourceFile) ... ok
test_per_file_compresslevel (test.test_zipfile.Bzip2TestsWithSourceFile)
Check that files within a Zip archive can have different ... ok
test_random_open (test.test_zipfile.Bzip2TestsWithSourceFile) ... ok
test_read1 (test.test_zipfile.Bzip2TestsWithSourceFile) ... ok
test_read1_10 (test.test_zipfile.Bzip2TestsWithSourceFile) ... ok
test_read_return_size (test.test_zipfile.Bzip2TestsWithSourceFile) ... ok
test_readline (test.test_zipfile.Bzip2TestsWithSourceFile) ... ok
test_readline_read (test.test_zipfile.Bzip2TestsWithSourceFile) ... ok
test_readlines (test.test_zipfile.Bzip2TestsWithSourceFile) ... ok
test_repr (test.test_zipfile.Bzip2TestsWithSourceFile) ... ok
test_truncated_zipfile (test.test_zipfile.Bzip2TestsWithSourceFile) ... ok
test_writestr_compression (test.test_zipfile.Bzip2TestsWithSourceFile) ... ok
test_writestr_compresslevel (test.test_zipfile.Bzip2TestsWithSourceFile) ... ok
test_close_after_close (test.test_zipfile.Bzip2WriterTests) ... ok
test_write_after_close (test.test_zipfile.Bzip2WriterTests) ... ok
test_bad_use (test.test_zipfile.CommandLineTest) ... ok
test_create_command (test.test_zipfile.CommandLineTest) ... ok
test_extract_command (test.test_zipfile.CommandLineTest) ... ok
test_list_command (test.test_zipfile.CommandLineTest) ... ok
test_test_command (test.test_zipfile.CommandLineTest) ... ok
test_bad_password (test.test_zipfile.DecryptionTests) ... ok
test_good_password (test.test_zipfile.DecryptionTests) ... ERROR
test_no_password (test.test_zipfile.DecryptionTests) ... ERROR
test_unicode_password (test.test_zipfile.DecryptionTests) ... ERROR
test_read_with_bad_crc (test.test_zipfile.DeflateBadCrcTests)
Tests that files with bad CRCs raise a BadZipFile exception when read. ... ok
test_testzip_with_bad_crc (test.test_zipfile.DeflateBadCrcTests)
Tests that files with bad CRCs return their name from testzip. ... ok
test_basic (test.test_zipfile.DeflateTestZip64InSmallFiles) ... ERROR
test_too_many_files (test.test_zipfile.DeflateTestZip64InSmallFiles) ... ERROR
test_too_many_files_append (test.test_zipfile.DeflateTestZip64InSmallFiles) ... ERROR
test_open (test.test_zipfile.DeflateTestsWithRandomBinaryFiles) ... ok
test_random_open (test.test_zipfile.DeflateTestsWithRandomBinaryFiles) ... ok
test_read (test.test_zipfile.DeflateTestsWithRandomBinaryFiles) ... ok
test_basic (test.test_zipfile.DeflateTestsWithSourceFile) ... ERROR
ERROR
Exception ignored in: <function ZipFile.__del__ at 0x0000000002BD7F70>
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1789, in __del__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.
C:\buildbot.python.org\3.7.kloth-win64\build\lib\unittest\case.py:643: ResourceWarning: unclosed file <_io.BufferedRandom name='@test_4524_tmp2'>
  outcome.errors.clear()
ResourceWarning: Enable tracemalloc to get the object allocation traceback
test_compresslevel_basic (test.test_zipfile.DeflateTestsWithSourceFile) ... ERROR
ERROR
Exception ignored in: <function ZipFile.__del__ at 0x0000000002BD7F70>
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1789, in __del__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.
test_iterlines (test.test_zipfile.DeflateTestsWithSourceFile) ... ERROR
ERROR
Exception ignored in: <function ZipFile.__del__ at 0x0000000002BD7F70>
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1789, in __del__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.
test_low_compression (test.test_zipfile.DeflateTestsWithSourceFile)
Check for cases where compressed data is larger than original. ... ok
test_open (test.test_zipfile.DeflateTestsWithSourceFile) ... ERROR
ERROR
Exception ignored in: <function ZipFile.__del__ at 0x0000000002BD7F70>
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1789, in __del__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.
test_open_with_pathlike (test.test_zipfile.DeflateTestsWithSourceFile) ... ERROR
ERROR
Exception ignored in: <function ZipFile.__del__ at 0x0000000002BD7F70>
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1789, in __del__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.
test_per_file_compression (test.test_zipfile.DeflateTestsWithSourceFile)
Check that files within a Zip archive can have different ... ok
test_per_file_compresslevel (test.test_zipfile.DeflateTestsWithSourceFile)
Check that files within a Zip archive can have different ... ok
test_random_open (test.test_zipfile.DeflateTestsWithSourceFile) ... ERROR
ERROR
Exception ignored in: <function ZipFile.__del__ at 0x0000000002BD7F70>
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1789, in __del__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.
test_read1 (test.test_zipfile.DeflateTestsWithSourceFile) ... ERROR
ERROR
Exception ignored in: <function ZipFile.__del__ at 0x0000000002BD7F70>
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1789, in __del__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.
test_read1_10 (test.test_zipfile.DeflateTestsWithSourceFile) ... ERROR
ERROR
Exception ignored in: <function ZipFile.__del__ at 0x0000000002BD7F70>
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1789, in __del__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.
test_read_return_size (test.test_zipfile.DeflateTestsWithSourceFile) ... ok
test_readline (test.test_zipfile.DeflateTestsWithSourceFile) ... ERROR
ERROR
Exception ignored in: <function ZipFile.__del__ at 0x0000000002BD7F70>
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1789, in __del__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.
test_readline_read (test.test_zipfile.DeflateTestsWithSourceFile) ... ERROR
ERROR
Exception ignored in: <function ZipFile.__del__ at 0x0000000002BD7F70>
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1789, in __del__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.
test_readlines (test.test_zipfile.DeflateTestsWithSourceFile) ... ERROR
ERROR
Exception ignored in: <function ZipFile.__del__ at 0x0000000002BD7F70>
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1789, in __del__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.
test_repr (test.test_zipfile.DeflateTestsWithSourceFile) ... ok
test_truncated_zipfile (test.test_zipfile.DeflateTestsWithSourceFile) ... ok
test_writestr_compression (test.test_zipfile.DeflateTestsWithSourceFile) ... ok
test_writestr_compresslevel (test.test_zipfile.DeflateTestsWithSourceFile) ... ok
test_close_after_close (test.test_zipfile.DeflateWriterTests) ... ok
test_write_after_close (test.test_zipfile.DeflateWriterTests) ... ok
test_extract (test.test_zipfile.ExtractTests) ... ok
test_extract_all (test.test_zipfile.ExtractTests) ... ok
test_extract_all_with_target (test.test_zipfile.ExtractTests) ... ok
test_extract_all_with_target_pathlike (test.test_zipfile.ExtractTests) ... ok
test_extract_hackers_arcnames_common_cases (test.test_zipfile.ExtractTests) ... ok
test_extract_hackers_arcnames_posix_only (test.test_zipfile.ExtractTests) ... skipped 'Requires / as path separator.'
test_extract_hackers_arcnames_windows_only (test.test_zipfile.ExtractTests)
Test combination of path fixing and windows name sanitization. ... ok
test_extract_with_target (test.test_zipfile.ExtractTests) ... ok
test_extract_with_target_pathlike (test.test_zipfile.ExtractTests) ... ok
test_sanitize_windows_name (test.test_zipfile.ExtractTests) ... ok
test_read_with_bad_crc (test.test_zipfile.LzmaBadCrcTests)
Tests that files with bad CRCs raise a BadZipFile exception when read. ... ok
test_testzip_with_bad_crc (test.test_zipfile.LzmaBadCrcTests)
Tests that files with bad CRCs return their name from testzip. ... ok
test_basic (test.test_zipfile.LzmaTestZip64InSmallFiles) ... ok
test_too_many_files (test.test_zipfile.LzmaTestZip64InSmallFiles) ... ok
test_too_many_files_append (test.test_zipfile.LzmaTestZip64InSmallFiles) ... ok
test_open (test.test_zipfile.LzmaTestsWithRandomBinaryFiles) ... ok
test_random_open (test.test_zipfile.LzmaTestsWithRandomBinaryFiles) ... ok
test_read (test.test_zipfile.LzmaTestsWithRandomBinaryFiles) ... ok
test_basic (test.test_zipfile.LzmaTestsWithSourceFile) ... ERROR
ERROR
Exception ignored in: <function ZipFile.__del__ at 0x0000000002BD7F70>
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1789, in __del__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.
test_compresslevel_basic (test.test_zipfile.LzmaTestsWithSourceFile) ... ERROR
ERROR
Exception ignored in: <function ZipFile.__del__ at 0x0000000002BD7F70>
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1789, in __del__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.
test_iterlines (test.test_zipfile.LzmaTestsWithSourceFile) ... ERROR
ERROR
Exception ignored in: <function ZipFile.__del__ at 0x0000000002BD7F70>
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1789, in __del__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.
test_low_compression (test.test_zipfile.LzmaTestsWithSourceFile)
Check for cases where compressed data is larger than original. ... ok
test_open (test.test_zipfile.LzmaTestsWithSourceFile) ... ERROR
ERROR
Exception ignored in: <function ZipFile.__del__ at 0x0000000002BD7F70>
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1789, in __del__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.
test_open_with_pathlike (test.test_zipfile.LzmaTestsWithSourceFile) ... ERROR
ERROR
Exception ignored in: <function ZipFile.__del__ at 0x0000000002BD7F70>
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1789, in __del__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.
test_per_file_compresslevel (test.test_zipfile.LzmaTestsWithSourceFile)
Check that files within a Zip archive can have different ... ok
test_random_open (test.test_zipfile.LzmaTestsWithSourceFile) ... ERROR
ERROR
Exception ignored in: <function ZipFile.__del__ at 0x0000000002BD7F70>
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1789, in __del__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.
test_read1 (test.test_zipfile.LzmaTestsWithSourceFile) ... ERROR
ERROR
Exception ignored in: <function ZipFile.__del__ at 0x0000000002BD7F70>
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1789, in __del__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.
test_read1_10 (test.test_zipfile.LzmaTestsWithSourceFile) ... ERROR
ERROR
Exception ignored in: <function ZipFile.__del__ at 0x0000000002BD7F70>
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1789, in __del__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.
test_read_return_size (test.test_zipfile.LzmaTestsWithSourceFile) ... ok
test_readline (test.test_zipfile.LzmaTestsWithSourceFile) ... ERROR
ERROR
Exception ignored in: <function ZipFile.__del__ at 0x0000000002BD7F70>
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1789, in __del__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.
test_readline_read (test.test_zipfile.LzmaTestsWithSourceFile) ... ERROR
ERROR
Exception ignored in: <function ZipFile.__del__ at 0x0000000002BD7F70>
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1789, in __del__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.
test_readlines (test.test_zipfile.LzmaTestsWithSourceFile) ... ERROR
ERROR
Exception ignored in: <function ZipFile.__del__ at 0x0000000002BD7F70>
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1789, in __del__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.
test_repr (test.test_zipfile.LzmaTestsWithSourceFile) ... ok
test_truncated_zipfile (test.test_zipfile.LzmaTestsWithSourceFile) ... ok
test_writestr_compression (test.test_zipfile.LzmaTestsWithSourceFile) ... ok
test_writestr_compresslevel (test.test_zipfile.LzmaTestsWithSourceFile) ... ok
test_close_after_close (test.test_zipfile.LzmaWriterTests) ... ok
test_write_after_close (test.test_zipfile.LzmaWriterTests) ... ok
test_bad_compression_mode (test.test_zipfile.OtherTests)
Check that bad compression methods passed to ZipFile.open are ... ok
test_bad_constructor_mode (test.test_zipfile.OtherTests)
Check that bad modes passed to ZipFile constructor are caught. ... ok
test_bad_open_mode (test.test_zipfile.OtherTests)
Check that bad modes passed to ZipFile.open are caught. ... ok
test_change_comment_in_empty_archive (test.test_zipfile.OtherTests) ... ok
test_change_comment_in_nonempty_archive (test.test_zipfile.OtherTests) ... ok
test_close (test.test_zipfile.OtherTests)
Check that the zipfile is closed after the 'with' block. ... ok
test_close_erroneous_file (test.test_zipfile.OtherTests) ... ok
test_close_on_exception (test.test_zipfile.OtherTests)
Check that the zipfile is closed if an exception is raised in the ... ok
test_closed_zip_raises_ValueError (test.test_zipfile.OtherTests)
Verify that testzip() doesn't swallow inappropriate exceptions. ... ok
test_comments (test.test_zipfile.OtherTests)
Check that comments on the archive are handled properly. ... ok
test_create_non_existent_file_for_append (test.test_zipfile.OtherTests) ... ok
test_create_zipinfo_before_1980 (test.test_zipfile.OtherTests) ... ok
test_damaged_zipfile (test.test_zipfile.OtherTests)
Check that zipfiles with missing bytes at the end raise BadZipFile. ... ok
test_empty_file_raises_BadZipFile (test.test_zipfile.OtherTests) ... ok
test_empty_zipfile (test.test_zipfile.OtherTests) ... ok
test_exclusive_create_zip_file (test.test_zipfile.OtherTests)
Test exclusive creating a new zipfile. ... ok
test_is_zip_erroneous_file (test.test_zipfile.OtherTests)
Check that is_zipfile() correctly identifies non-zip files. ... ok
test_is_zip_valid_file (test.test_zipfile.OtherTests)
Check that is_zipfile() correctly identifies zip files. ... ok
test_non_existent_file_raises_OSError (test.test_zipfile.OtherTests) ... ok
test_null_byte_in_filename (test.test_zipfile.OtherTests)
Check that a filename containing a null byte is properly ... ok
test_open_conflicting_handles (test.test_zipfile.OtherTests) ... ok
test_open_empty_file (test.test_zipfile.OtherTests) ... ok
test_open_non_existent_item (test.test_zipfile.OtherTests)
Check that attempting to call open() for an item that doesn't ... ok
test_open_via_zip_info (test.test_zipfile.OtherTests) ... ok
test_read0 (test.test_zipfile.OtherTests)
Check that calling read(0) on a ZipExtFile object returns an empty ... ok
test_read_unicode_filenames (test.test_zipfile.OtherTests) ... ok
test_seek_tell (test.test_zipfile.OtherTests) ... ok
test_struct_sizes (test.test_zipfile.OtherTests)
Check that ZIP internal structure sizes are calculated correctly. ... ok
test_unicode_comment (test.test_zipfile.OtherTests) ... ok
test_unsupported_compression (test.test_zipfile.OtherTests) ... ok
test_unsupported_version (test.test_zipfile.OtherTests) ... ok
test_write_unicode_filenames (test.test_zipfile.OtherTests) ... ok
test_writestr_extended_local_header_issue1202 (test.test_zipfile.OtherTests) ... ok
test_zipfile_with_short_extra_field (test.test_zipfile.OtherTests)
If an extra field in the header is less than 4 bytes, skip it. ... ok
test_write_filtered_python_package (test.test_zipfile.PyZipFileTests) ... ok
test_write_non_pyfile (test.test_zipfile.PyZipFileTests) ... ok
test_write_pathlike (test.test_zipfile.PyZipFileTests) ... ok
test_write_pyfile (test.test_zipfile.PyZipFileTests) ... ok
test_write_pyfile_bad_syntax (test.test_zipfile.PyZipFileTests) ... ok
test_write_python_directory (test.test_zipfile.PyZipFileTests) ... ok
test_write_python_directory_filtered (test.test_zipfile.PyZipFileTests) ... ok
test_write_python_package (test.test_zipfile.PyZipFileTests) ... ok
test_write_with_optimization (test.test_zipfile.PyZipFileTests) ... ok
test_read_with_bad_crc (test.test_zipfile.StoredBadCrcTests)
Tests that files with bad CRCs raise a BadZipFile exception when read. ... ok
test_testzip_with_bad_crc (test.test_zipfile.StoredBadCrcTests)
Tests that files with bad CRCs return their name from testzip. ... ok
test_absolute_arcnames (test.test_zipfile.StoredTestZip64InSmallFiles) ... ok
test_append (test.test_zipfile.StoredTestZip64InSmallFiles) ... ok
test_basic (test.test_zipfile.StoredTestZip64InSmallFiles) ... ok
test_large_file_exception (test.test_zipfile.StoredTestZip64InSmallFiles) ... ok
test_too_many_files (test.test_zipfile.StoredTestZip64InSmallFiles) ... ok
test_too_many_files_append (test.test_zipfile.StoredTestZip64InSmallFiles) ... ok
test_open (test.test_zipfile.StoredTestsWithRandomBinaryFiles) ... ok
test_random_open (test.test_zipfile.StoredTestsWithRandomBinaryFiles) ... ok
test_read (test.test_zipfile.StoredTestsWithRandomBinaryFiles) ... ok
test_absolute_arcnames (test.test_zipfile.StoredTestsWithSourceFile) ... ok
test_add_file_before_1980 (test.test_zipfile.StoredTestsWithSourceFile) ... ok
test_append_to_concatenated_zip_file (test.test_zipfile.StoredTestsWithSourceFile) ... ok
test_append_to_non_zip_file (test.test_zipfile.StoredTestsWithSourceFile)
Test appending to an existing file that is not a zipfile. ... ok
test_append_to_zip_file (test.test_zipfile.StoredTestsWithSourceFile)
Test appending to an existing zipfile. ... ok
test_basic (test.test_zipfile.StoredTestsWithSourceFile) ... ERROR
ERROR
Exception ignored in: <function ZipFile.__del__ at 0x0000000002BD7F70>
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1789, in __del__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.
C:\buildbot.python.org\3.7.kloth-win64\build\lib\unittest\case.py:643: ResourceWarning: unclosed file <_io.BufferedRandom name='@test_4524_tmp2'>
  outcome.errors.clear()
ResourceWarning: Enable tracemalloc to get the object allocation traceback
test_compresslevel_basic (test.test_zipfile.StoredTestsWithSourceFile) ... ERROR
ERROR
Exception ignored in: <function ZipFile.__del__ at 0x0000000002BD7F70>
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1789, in __del__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.
test_ignores_newline_at_end (test.test_zipfile.StoredTestsWithSourceFile) ... ok
test_ignores_stuff_appended_past_comments (test.test_zipfile.StoredTestsWithSourceFile) ... ok
test_iterlines (test.test_zipfile.StoredTestsWithSourceFile) ... ERROR
ERROR
Exception ignored in: <function ZipFile.__del__ at 0x0000000002BD7F70>
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1789, in __del__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.
test_open (test.test_zipfile.StoredTestsWithSourceFile) ... ERROR
ERROR
Exception ignored in: <function ZipFile.__del__ at 0x0000000002BD7F70>
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1789, in __del__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.
test_open_with_pathlike (test.test_zipfile.StoredTestsWithSourceFile) ... ERROR
ERROR
Exception ignored in: <function ZipFile.__del__ at 0x0000000002BD7F70>
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1789, in __del__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.
test_per_file_compresslevel (test.test_zipfile.StoredTestsWithSourceFile)
Check that files within a Zip archive can have different ... ok
test_random_open (test.test_zipfile.StoredTestsWithSourceFile) ... ERROR
ERROR
Exception ignored in: <function ZipFile.__del__ at 0x0000000002BD7F70>
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1789, in __del__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.
test_read1 (test.test_zipfile.StoredTestsWithSourceFile) ... ERROR
ERROR
Exception ignored in: <function ZipFile.__del__ at 0x0000000002BD7F70>
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1789, in __del__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.
test_read1_10 (test.test_zipfile.StoredTestsWithSourceFile) ... ERROR
ERROR
Exception ignored in: <function ZipFile.__del__ at 0x0000000002BD7F70>
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1789, in __del__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.
test_read_concatenated_zip_file (test.test_zipfile.StoredTestsWithSourceFile) ... ok
test_read_return_size (test.test_zipfile.StoredTestsWithSourceFile) ... ok
test_readline (test.test_zipfile.StoredTestsWithSourceFile) ... ERROR
ERROR
Exception ignored in: <function ZipFile.__del__ at 0x0000000002BD7F70>
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1789, in __del__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.
test_readline_read (test.test_zipfile.StoredTestsWithSourceFile) ... ERROR
ERROR
Exception ignored in: <function ZipFile.__del__ at 0x0000000002BD7F70>
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1789, in __del__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.
test_readlines (test.test_zipfile.StoredTestsWithSourceFile) ... ERROR
ERROR
Exception ignored in: <function ZipFile.__del__ at 0x0000000002BD7F70>
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1789, in __del__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.
test_repr (test.test_zipfile.StoredTestsWithSourceFile) ... ok
test_truncated_zipfile (test.test_zipfile.StoredTestsWithSourceFile) ... ok
test_write_default_name (test.test_zipfile.StoredTestsWithSourceFile)
Check that calling ZipFile.write without arcname specified ... ok
test_write_to_readonly (test.test_zipfile.StoredTestsWithSourceFile)
Check that trying to call write() on a readonly ZipFile object ... ok
test_writestr_compression (test.test_zipfile.StoredTestsWithSourceFile) ... ok
test_writestr_compresslevel (test.test_zipfile.StoredTestsWithSourceFile) ... ok
test_writestr_permissions (test.test_zipfile.StoredTestsWithSourceFile) ... ERROR
ERROR
Exception ignored in: <function ZipFile.__del__ at 0x0000000002BD7F70>
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1789, in __del__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.
test_close_after_close (test.test_zipfile.StoredWriterTests) ... ok
test_write_after_close (test.test_zipfile.StoredWriterTests) ... ok
test_bug_6050 (test.test_zipfile.TestWithDirectory) ... ok
test_extract_dir (test.test_zipfile.TestWithDirectory) ... ok
test_write_dir (test.test_zipfile.TestWithDirectory) ... ok
test_writestr_dir (test.test_zipfile.TestWithDirectory) ... ok
test_different_file (test.test_zipfile.TestsWithMultipleOpens) ... ok
test_interleaved (test.test_zipfile.TestsWithMultipleOpens) ... ok
test_many_opens (test.test_zipfile.TestsWithMultipleOpens) ... ok
test_read_after_close (test.test_zipfile.TestsWithMultipleOpens) ... ok
test_read_after_write (test.test_zipfile.TestsWithMultipleOpens) ... ok
test_same_file (test.test_zipfile.TestsWithMultipleOpens) ... ok
test_write_after_read (test.test_zipfile.TestsWithMultipleOpens) ... ok
test_write_while_reading (test.test_zipfile.TestsWithMultipleOpens) ... ERROR
ERROR
Exception ignored in: <function ZipFile.__del__ at 0x0000000002BD7F70>
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1789, in __del__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.
test_open_write (test.test_zipfile.UnseekableTests) ... ok
test_write (test.test_zipfile.UnseekableTests) ... ok
test_writestr (test.test_zipfile.UnseekableTests) ... ok
test_from_dir (test.test_zipfile.ZipInfoTests) ... ok
test_from_file (test.test_zipfile.ZipInfoTests) ... ok
test_from_file_bytes (test.test_zipfile.ZipInfoTests) ... ok
test_from_file_fileno (test.test_zipfile.ZipInfoTests) ... ok
test_from_file_pathlike (test.test_zipfile.ZipInfoTests) ... ok

======================================================================
ERROR: test_good_password (test.test_zipfile.DecryptionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 1802, in setUp
    with open(TESTFN, "wb") as fp:
PermissionError: [Errno 13] Permission denied: '@test_4524_tmp'

======================================================================
ERROR: test_no_password (test.test_zipfile.DecryptionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 1802, in setUp
    with open(TESTFN, "wb") as fp:
PermissionError: [Errno 13] Permission denied: '@test_4524_tmp'

======================================================================
ERROR: test_unicode_password (test.test_zipfile.DecryptionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 1802, in setUp
    with open(TESTFN, "wb") as fp:
PermissionError: [Errno 13] Permission denied: '@test_4524_tmp'

======================================================================
ERROR: test_basic (test.test_zipfile.DeflateTestZip64InSmallFiles)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 597, in setUp
    with open(TESTFN, "wb") as fp:
PermissionError: [Errno 13] Permission denied: '@test_4524_tmp'

======================================================================
ERROR: test_too_many_files (test.test_zipfile.DeflateTestZip64InSmallFiles)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 597, in setUp
    with open(TESTFN, "wb") as fp:
PermissionError: [Errno 13] Permission denied: '@test_4524_tmp'

======================================================================
ERROR: test_too_many_files_append (test.test_zipfile.DeflateTestZip64InSmallFiles)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 597, in setUp
    with open(TESTFN, "wb") as fp:
PermissionError: [Errno 13] Permission denied: '@test_4524_tmp'

======================================================================
ERROR: test_basic (test.test_zipfile.DeflateTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1126, in close
    raise RuntimeError('File size unexpectedly exceeded ZIP64 '
RuntimeError: File size unexpectedly exceeded ZIP64 limit

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 123, in test_basic
    self.zip_test(f, self.compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 68, in zip_test
    self.make_test_archive(f, compression, compresslevel)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1265, in __exit__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.

======================================================================
ERROR: test_basic (test.test_zipfile.DeflateTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 407, in tearDown
    unlink(TESTFN2)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 419, in unlink
    _unlink(filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 352, in _unlink
    _waitfor(os.unlink, filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 320, in _waitfor
    func(pathname)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '@test_4524_tmp2'

======================================================================
ERROR: test_compresslevel_basic (test.test_zipfile.DeflateTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1126, in close
    raise RuntimeError('File size unexpectedly exceeded ZIP64 '
RuntimeError: File size unexpectedly exceeded ZIP64 limit

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 392, in test_compresslevel_basic
    self.zip_test(f, self.compression, compresslevel=9)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 68, in zip_test
    self.make_test_archive(f, compression, compresslevel)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1265, in __exit__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.

======================================================================
ERROR: test_compresslevel_basic (test.test_zipfile.DeflateTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 407, in tearDown
    unlink(TESTFN2)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 419, in unlink
    _unlink(filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 352, in _unlink
    _waitfor(os.unlink, filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 320, in _waitfor
    func(pathname)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '@test_4524_tmp2'

======================================================================
ERROR: test_iterlines (test.test_zipfile.DeflateTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1126, in close
    raise RuntimeError('File size unexpectedly exceeded ZIP64 '
RuntimeError: File size unexpectedly exceeded ZIP64 limit

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 281, in test_iterlines
    self.zip_iterlines_test(f, self.compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 271, in zip_iterlines_test
    self.make_test_archive(f, compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1265, in __exit__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.

======================================================================
ERROR: test_iterlines (test.test_zipfile.DeflateTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 407, in tearDown
    unlink(TESTFN2)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 419, in unlink
    _unlink(filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 352, in _unlink
    _waitfor(os.unlink, filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 320, in _waitfor
    func(pathname)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '@test_4524_tmp2'

======================================================================
ERROR: test_open (test.test_zipfile.DeflateTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1126, in close
    raise RuntimeError('File size unexpectedly exceeded ZIP64 '
RuntimeError: File size unexpectedly exceeded ZIP64 limit

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 151, in test_open
    self.zip_open_test(f, self.compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 126, in zip_open_test
    self.make_test_archive(f, compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1265, in __exit__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.

======================================================================
ERROR: test_open (test.test_zipfile.DeflateTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 407, in tearDown
    unlink(TESTFN2)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 419, in unlink
    _unlink(filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 352, in _unlink
    _waitfor(os.unlink, filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 320, in _waitfor
    func(pathname)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '@test_4524_tmp2'

======================================================================
ERROR: test_open_with_pathlike (test.test_zipfile.DeflateTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1126, in close
    raise RuntimeError('File size unexpectedly exceeded ZIP64 '
RuntimeError: File size unexpectedly exceeded ZIP64 limit

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 155, in test_open_with_pathlike
    self.zip_open_test(path, self.compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 126, in zip_open_test
    self.make_test_archive(f, compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1265, in __exit__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.

======================================================================
ERROR: test_open_with_pathlike (test.test_zipfile.DeflateTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 407, in tearDown
    unlink(TESTFN2)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 419, in unlink
    _unlink(filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 352, in _unlink
    _waitfor(os.unlink, filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 320, in _waitfor
    func(pathname)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '@test_4524_tmp2'

======================================================================
ERROR: test_random_open (test.test_zipfile.DeflateTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1126, in close
    raise RuntimeError('File size unexpectedly exceeded ZIP64 '
RuntimeError: File size unexpectedly exceeded ZIP64 limit

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 176, in test_random_open
    self.zip_random_open_test(f, self.compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 160, in zip_random_open_test
    self.make_test_archive(f, compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1265, in __exit__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.

======================================================================
ERROR: test_random_open (test.test_zipfile.DeflateTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 407, in tearDown
    unlink(TESTFN2)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 419, in unlink
    _unlink(filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 352, in _unlink
    _waitfor(os.unlink, filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 320, in _waitfor
    func(pathname)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '@test_4524_tmp2'

======================================================================
ERROR: test_read1 (test.test_zipfile.DeflateTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1126, in close
    raise RuntimeError('File size unexpectedly exceeded ZIP64 '
RuntimeError: File size unexpectedly exceeded ZIP64 limit

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 195, in test_read1
    self.zip_read1_test(f, self.compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 179, in zip_read1_test
    self.make_test_archive(f, compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1265, in __exit__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.

======================================================================
ERROR: test_read1 (test.test_zipfile.DeflateTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 407, in tearDown
    unlink(TESTFN2)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 419, in unlink
    _unlink(filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 352, in _unlink
    _waitfor(os.unlink, filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 320, in _waitfor
    func(pathname)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '@test_4524_tmp2'

======================================================================
ERROR: test_read1_10 (test.test_zipfile.DeflateTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1126, in close
    raise RuntimeError('File size unexpectedly exceeded ZIP64 '
RuntimeError: File size unexpectedly exceeded ZIP64 limit

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 215, in test_read1_10
    self.zip_read1_10_test(f, self.compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 198, in zip_read1_10_test
    self.make_test_archive(f, compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1265, in __exit__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.

======================================================================
ERROR: test_read1_10 (test.test_zipfile.DeflateTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 407, in tearDown
    unlink(TESTFN2)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 419, in unlink
    _unlink(filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 352, in _unlink
    _waitfor(os.unlink, filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 320, in _waitfor
    func(pathname)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '@test_4524_tmp2'

======================================================================
ERROR: test_readline (test.test_zipfile.DeflateTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1126, in close
    raise RuntimeError('File size unexpectedly exceeded ZIP64 '
RuntimeError: File size unexpectedly exceeded ZIP64 limit

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 254, in test_readline
    self.zip_readline_test(f, self.compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 243, in zip_readline_test
    self.make_test_archive(f, compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1265, in __exit__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.

======================================================================
ERROR: test_readline (test.test_zipfile.DeflateTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 407, in tearDown
    unlink(TESTFN2)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 419, in unlink
    _unlink(filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 352, in _unlink
    _waitfor(os.unlink, filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 320, in _waitfor
    func(pathname)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '@test_4524_tmp2'

======================================================================
ERROR: test_readline_read (test.test_zipfile.DeflateTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1126, in close
    raise RuntimeError('File size unexpectedly exceeded ZIP64 '
RuntimeError: File size unexpectedly exceeded ZIP64 limit

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 240, in test_readline_read
    self.zip_readline_read_test(f, self.compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 218, in zip_readline_read_test
    self.make_test_archive(f, compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1265, in __exit__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.

======================================================================
ERROR: test_readline_read (test.test_zipfile.DeflateTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 407, in tearDown
    unlink(TESTFN2)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 419, in unlink
    _unlink(filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 352, in _unlink
    _waitfor(os.unlink, filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 320, in _waitfor
    func(pathname)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '@test_4524_tmp2'

======================================================================
ERROR: test_readlines (test.test_zipfile.DeflateTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1126, in close
    raise RuntimeError('File size unexpectedly exceeded ZIP64 '
RuntimeError: File size unexpectedly exceeded ZIP64 limit

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 268, in test_readlines
    self.zip_readlines_test(f, self.compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 257, in zip_readlines_test
    self.make_test_archive(f, compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1265, in __exit__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.

======================================================================
ERROR: test_readlines (test.test_zipfile.DeflateTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 407, in tearDown
    unlink(TESTFN2)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 419, in unlink
    _unlink(filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 352, in _unlink
    _waitfor(os.unlink, filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 320, in _waitfor
    func(pathname)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '@test_4524_tmp2'

======================================================================
ERROR: test_basic (test.test_zipfile.LzmaTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1126, in close
    raise RuntimeError('File size unexpectedly exceeded ZIP64 '
RuntimeError: File size unexpectedly exceeded ZIP64 limit

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 123, in test_basic
    self.zip_test(f, self.compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 68, in zip_test
    self.make_test_archive(f, compression, compresslevel)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1265, in __exit__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.

======================================================================
ERROR: test_basic (test.test_zipfile.LzmaTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 407, in tearDown
    unlink(TESTFN2)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 419, in unlink
    _unlink(filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 352, in _unlink
    _waitfor(os.unlink, filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 320, in _waitfor
    func(pathname)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '@test_4524_tmp2'

======================================================================
ERROR: test_compresslevel_basic (test.test_zipfile.LzmaTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1126, in close
    raise RuntimeError('File size unexpectedly exceeded ZIP64 '
RuntimeError: File size unexpectedly exceeded ZIP64 limit

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 392, in test_compresslevel_basic
    self.zip_test(f, self.compression, compresslevel=9)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 68, in zip_test
    self.make_test_archive(f, compression, compresslevel)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1265, in __exit__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.

======================================================================
ERROR: test_compresslevel_basic (test.test_zipfile.LzmaTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 407, in tearDown
    unlink(TESTFN2)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 419, in unlink
    _unlink(filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 352, in _unlink
    _waitfor(os.unlink, filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 320, in _waitfor
    func(pathname)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '@test_4524_tmp2'

======================================================================
ERROR: test_iterlines (test.test_zipfile.LzmaTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1126, in close
    raise RuntimeError('File size unexpectedly exceeded ZIP64 '
RuntimeError: File size unexpectedly exceeded ZIP64 limit

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 281, in test_iterlines
    self.zip_iterlines_test(f, self.compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 271, in zip_iterlines_test
    self.make_test_archive(f, compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1265, in __exit__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.

======================================================================
ERROR: test_iterlines (test.test_zipfile.LzmaTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 407, in tearDown
    unlink(TESTFN2)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 419, in unlink
    _unlink(filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 352, in _unlink
    _waitfor(os.unlink, filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 320, in _waitfor
    func(pathname)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '@test_4524_tmp2'

======================================================================
ERROR: test_open (test.test_zipfile.LzmaTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1126, in close
    raise RuntimeError('File size unexpectedly exceeded ZIP64 '
RuntimeError: File size unexpectedly exceeded ZIP64 limit

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 151, in test_open
    self.zip_open_test(f, self.compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 126, in zip_open_test
    self.make_test_archive(f, compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1265, in __exit__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.

======================================================================
ERROR: test_open (test.test_zipfile.LzmaTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 407, in tearDown
    unlink(TESTFN2)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 419, in unlink
    _unlink(filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 352, in _unlink
    _waitfor(os.unlink, filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 320, in _waitfor
    func(pathname)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '@test_4524_tmp2'

======================================================================
ERROR: test_open_with_pathlike (test.test_zipfile.LzmaTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1126, in close
    raise RuntimeError('File size unexpectedly exceeded ZIP64 '
RuntimeError: File size unexpectedly exceeded ZIP64 limit

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 155, in test_open_with_pathlike
    self.zip_open_test(path, self.compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 126, in zip_open_test
    self.make_test_archive(f, compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1265, in __exit__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.

======================================================================
ERROR: test_open_with_pathlike (test.test_zipfile.LzmaTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 407, in tearDown
    unlink(TESTFN2)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 419, in unlink
    _unlink(filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 352, in _unlink
    _waitfor(os.unlink, filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 320, in _waitfor
    func(pathname)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '@test_4524_tmp2'

======================================================================
ERROR: test_random_open (test.test_zipfile.LzmaTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1126, in close
    raise RuntimeError('File size unexpectedly exceeded ZIP64 '
RuntimeError: File size unexpectedly exceeded ZIP64 limit

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 176, in test_random_open
    self.zip_random_open_test(f, self.compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 160, in zip_random_open_test
    self.make_test_archive(f, compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1265, in __exit__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.

======================================================================
ERROR: test_random_open (test.test_zipfile.LzmaTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 407, in tearDown
    unlink(TESTFN2)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 419, in unlink
    _unlink(filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 352, in _unlink
    _waitfor(os.unlink, filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 320, in _waitfor
    func(pathname)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '@test_4524_tmp2'

======================================================================
ERROR: test_read1 (test.test_zipfile.LzmaTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1126, in close
    raise RuntimeError('File size unexpectedly exceeded ZIP64 '
RuntimeError: File size unexpectedly exceeded ZIP64 limit

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 195, in test_read1
    self.zip_read1_test(f, self.compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 179, in zip_read1_test
    self.make_test_archive(f, compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1265, in __exit__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.

======================================================================
ERROR: test_read1 (test.test_zipfile.LzmaTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 407, in tearDown
    unlink(TESTFN2)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 419, in unlink
    _unlink(filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 352, in _unlink
    _waitfor(os.unlink, filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 320, in _waitfor
    func(pathname)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '@test_4524_tmp2'

======================================================================
ERROR: test_read1_10 (test.test_zipfile.LzmaTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1126, in close
    raise RuntimeError('File size unexpectedly exceeded ZIP64 '
RuntimeError: File size unexpectedly exceeded ZIP64 limit

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 215, in test_read1_10
    self.zip_read1_10_test(f, self.compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 198, in zip_read1_10_test
    self.make_test_archive(f, compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1265, in __exit__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.

======================================================================
ERROR: test_read1_10 (test.test_zipfile.LzmaTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 407, in tearDown
    unlink(TESTFN2)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 419, in unlink
    _unlink(filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 352, in _unlink
    _waitfor(os.unlink, filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 320, in _waitfor
    func(pathname)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '@test_4524_tmp2'

======================================================================
ERROR: test_readline (test.test_zipfile.LzmaTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1126, in close
    raise RuntimeError('File size unexpectedly exceeded ZIP64 '
RuntimeError: File size unexpectedly exceeded ZIP64 limit

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 254, in test_readline
    self.zip_readline_test(f, self.compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 243, in zip_readline_test
    self.make_test_archive(f, compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1265, in __exit__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.

======================================================================
ERROR: test_readline (test.test_zipfile.LzmaTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 407, in tearDown
    unlink(TESTFN2)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 419, in unlink
    _unlink(filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 352, in _unlink
    _waitfor(os.unlink, filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 320, in _waitfor
    func(pathname)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '@test_4524_tmp2'

======================================================================
ERROR: test_readline_read (test.test_zipfile.LzmaTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1126, in close
    raise RuntimeError('File size unexpectedly exceeded ZIP64 '
RuntimeError: File size unexpectedly exceeded ZIP64 limit

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 240, in test_readline_read
    self.zip_readline_read_test(f, self.compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 218, in zip_readline_read_test
    self.make_test_archive(f, compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1265, in __exit__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.

======================================================================
ERROR: test_readline_read (test.test_zipfile.LzmaTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 407, in tearDown
    unlink(TESTFN2)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 419, in unlink
    _unlink(filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 352, in _unlink
    _waitfor(os.unlink, filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 320, in _waitfor
    func(pathname)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '@test_4524_tmp2'

======================================================================
ERROR: test_readlines (test.test_zipfile.LzmaTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1126, in close
    raise RuntimeError('File size unexpectedly exceeded ZIP64 '
RuntimeError: File size unexpectedly exceeded ZIP64 limit

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 268, in test_readlines
    self.zip_readlines_test(f, self.compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 257, in zip_readlines_test
    self.make_test_archive(f, compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1265, in __exit__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.

======================================================================
ERROR: test_readlines (test.test_zipfile.LzmaTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 407, in tearDown
    unlink(TESTFN2)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 419, in unlink
    _unlink(filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 352, in _unlink
    _waitfor(os.unlink, filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 320, in _waitfor
    func(pathname)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '@test_4524_tmp2'

======================================================================
ERROR: test_basic (test.test_zipfile.StoredTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1126, in close
    raise RuntimeError('File size unexpectedly exceeded ZIP64 '
RuntimeError: File size unexpectedly exceeded ZIP64 limit

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 123, in test_basic
    self.zip_test(f, self.compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 68, in zip_test
    self.make_test_archive(f, compression, compresslevel)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1265, in __exit__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.

======================================================================
ERROR: test_basic (test.test_zipfile.StoredTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 407, in tearDown
    unlink(TESTFN2)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 419, in unlink
    _unlink(filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 352, in _unlink
    _waitfor(os.unlink, filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 320, in _waitfor
    func(pathname)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '@test_4524_tmp2'

======================================================================
ERROR: test_compresslevel_basic (test.test_zipfile.StoredTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1126, in close
    raise RuntimeError('File size unexpectedly exceeded ZIP64 '
RuntimeError: File size unexpectedly exceeded ZIP64 limit

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 392, in test_compresslevel_basic
    self.zip_test(f, self.compression, compresslevel=9)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 68, in zip_test
    self.make_test_archive(f, compression, compresslevel)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1265, in __exit__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.

======================================================================
ERROR: test_compresslevel_basic (test.test_zipfile.StoredTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 407, in tearDown
    unlink(TESTFN2)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 419, in unlink
    _unlink(filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 352, in _unlink
    _waitfor(os.unlink, filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 320, in _waitfor
    func(pathname)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '@test_4524_tmp2'

======================================================================
ERROR: test_iterlines (test.test_zipfile.StoredTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1126, in close
    raise RuntimeError('File size unexpectedly exceeded ZIP64 '
RuntimeError: File size unexpectedly exceeded ZIP64 limit

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 281, in test_iterlines
    self.zip_iterlines_test(f, self.compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 271, in zip_iterlines_test
    self.make_test_archive(f, compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1265, in __exit__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.

======================================================================
ERROR: test_iterlines (test.test_zipfile.StoredTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 407, in tearDown
    unlink(TESTFN2)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 419, in unlink
    _unlink(filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 352, in _unlink
    _waitfor(os.unlink, filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 320, in _waitfor
    func(pathname)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '@test_4524_tmp2'

======================================================================
ERROR: test_open (test.test_zipfile.StoredTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1126, in close
    raise RuntimeError('File size unexpectedly exceeded ZIP64 '
RuntimeError: File size unexpectedly exceeded ZIP64 limit

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 151, in test_open
    self.zip_open_test(f, self.compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 126, in zip_open_test
    self.make_test_archive(f, compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1265, in __exit__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.

======================================================================
ERROR: test_open (test.test_zipfile.StoredTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 407, in tearDown
    unlink(TESTFN2)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 419, in unlink
    _unlink(filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 352, in _unlink
    _waitfor(os.unlink, filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 320, in _waitfor
    func(pathname)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '@test_4524_tmp2'

======================================================================
ERROR: test_open_with_pathlike (test.test_zipfile.StoredTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1126, in close
    raise RuntimeError('File size unexpectedly exceeded ZIP64 '
RuntimeError: File size unexpectedly exceeded ZIP64 limit

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 155, in test_open_with_pathlike
    self.zip_open_test(path, self.compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 126, in zip_open_test
    self.make_test_archive(f, compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1265, in __exit__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.

======================================================================
ERROR: test_open_with_pathlike (test.test_zipfile.StoredTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 407, in tearDown
    unlink(TESTFN2)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 419, in unlink
    _unlink(filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 352, in _unlink
    _waitfor(os.unlink, filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 320, in _waitfor
    func(pathname)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '@test_4524_tmp2'

======================================================================
ERROR: test_random_open (test.test_zipfile.StoredTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1126, in close
    raise RuntimeError('File size unexpectedly exceeded ZIP64 '
RuntimeError: File size unexpectedly exceeded ZIP64 limit

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 176, in test_random_open
    self.zip_random_open_test(f, self.compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 160, in zip_random_open_test
    self.make_test_archive(f, compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1265, in __exit__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.

======================================================================
ERROR: test_random_open (test.test_zipfile.StoredTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 407, in tearDown
    unlink(TESTFN2)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 419, in unlink
    _unlink(filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 352, in _unlink
    _waitfor(os.unlink, filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 320, in _waitfor
    func(pathname)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '@test_4524_tmp2'

======================================================================
ERROR: test_read1 (test.test_zipfile.StoredTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1126, in close
    raise RuntimeError('File size unexpectedly exceeded ZIP64 '
RuntimeError: File size unexpectedly exceeded ZIP64 limit

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 195, in test_read1
    self.zip_read1_test(f, self.compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 179, in zip_read1_test
    self.make_test_archive(f, compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1265, in __exit__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.

======================================================================
ERROR: test_read1 (test.test_zipfile.StoredTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 407, in tearDown
    unlink(TESTFN2)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 419, in unlink
    _unlink(filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 352, in _unlink
    _waitfor(os.unlink, filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 320, in _waitfor
    func(pathname)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '@test_4524_tmp2'

======================================================================
ERROR: test_read1_10 (test.test_zipfile.StoredTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1126, in close
    raise RuntimeError('File size unexpectedly exceeded ZIP64 '
RuntimeError: File size unexpectedly exceeded ZIP64 limit

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 215, in test_read1_10
    self.zip_read1_10_test(f, self.compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 198, in zip_read1_10_test
    self.make_test_archive(f, compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1265, in __exit__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.

======================================================================
ERROR: test_read1_10 (test.test_zipfile.StoredTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 407, in tearDown
    unlink(TESTFN2)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 419, in unlink
    _unlink(filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 352, in _unlink
    _waitfor(os.unlink, filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 320, in _waitfor
    func(pathname)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '@test_4524_tmp2'

======================================================================
ERROR: test_readline (test.test_zipfile.StoredTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1126, in close
    raise RuntimeError('File size unexpectedly exceeded ZIP64 '
RuntimeError: File size unexpectedly exceeded ZIP64 limit

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 254, in test_readline
    self.zip_readline_test(f, self.compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 243, in zip_readline_test
    self.make_test_archive(f, compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1265, in __exit__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.

======================================================================
ERROR: test_readline (test.test_zipfile.StoredTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 407, in tearDown
    unlink(TESTFN2)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 419, in unlink
    _unlink(filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 352, in _unlink
    _waitfor(os.unlink, filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 320, in _waitfor
    func(pathname)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '@test_4524_tmp2'

======================================================================
ERROR: test_readline_read (test.test_zipfile.StoredTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1126, in close
    raise RuntimeError('File size unexpectedly exceeded ZIP64 '
RuntimeError: File size unexpectedly exceeded ZIP64 limit

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 240, in test_readline_read
    self.zip_readline_read_test(f, self.compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 218, in zip_readline_read_test
    self.make_test_archive(f, compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1265, in __exit__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.

======================================================================
ERROR: test_readline_read (test.test_zipfile.StoredTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 407, in tearDown
    unlink(TESTFN2)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 419, in unlink
    _unlink(filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 352, in _unlink
    _waitfor(os.unlink, filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 320, in _waitfor
    func(pathname)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '@test_4524_tmp2'

======================================================================
ERROR: test_readlines (test.test_zipfile.StoredTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1126, in close
    raise RuntimeError('File size unexpectedly exceeded ZIP64 '
RuntimeError: File size unexpectedly exceeded ZIP64 limit

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 268, in test_readlines
    self.zip_readlines_test(f, self.compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 257, in zip_readlines_test
    self.make_test_archive(f, compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1265, in __exit__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.

======================================================================
ERROR: test_readlines (test.test_zipfile.StoredTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 407, in tearDown
    unlink(TESTFN2)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 419, in unlink
    _unlink(filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 352, in _unlink
    _waitfor(os.unlink, filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 320, in _waitfor
    func(pathname)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '@test_4524_tmp2'

======================================================================
ERROR: test_writestr_permissions (test.test_zipfile.StoredTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1126, in close
    raise RuntimeError('File size unexpectedly exceeded ZIP64 '
RuntimeError: File size unexpectedly exceeded ZIP64 limit

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 430, in test_writestr_permissions
    self.zip_test_writestr_permissions(f, zipfile.ZIP_STORED)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 420, in zip_test_writestr_permissions
    self.make_test_archive(f, compression)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 65, in make_test_archive
    f.write(line)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1265, in __exit__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.

======================================================================
ERROR: test_writestr_permissions (test.test_zipfile.StoredTestsWithSourceFile)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 407, in tearDown
    unlink(TESTFN2)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 419, in unlink
    _unlink(filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 352, in _unlink
    _waitfor(os.unlink, filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 320, in _waitfor
    func(pathname)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '@test_4524_tmp2'

======================================================================
ERROR: test_write_while_reading (test.test_zipfile.TestsWithMultipleOpens)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 2149, in test_write_while_reading
    w1.write(self.data2)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1126, in close
    raise RuntimeError('File size unexpectedly exceeded ZIP64 '
RuntimeError: File size unexpectedly exceeded ZIP64 limit

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 2150, in test_write_while_reading
    data1 += r1.read()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1265, in __exit__
    self.close()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\zipfile.py", line 1798, in close
    raise ValueError("Can't close the ZIP file while there is "
ValueError: Can't close the ZIP file while there is an open writing handle on it. Close the writing handle before closing the zip.

======================================================================
ERROR: test_write_while_reading (test.test_zipfile.TestsWithMultipleOpens)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_zipfile.py", line 2156, in tearDown
    unlink(TESTFN2)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 419, in unlink
    _unlink(filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 352, in _unlink
    _waitfor(os.unlink, filename)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py", line 320, in _waitfor
    func(pathname)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: '@test_4524_tmp2'

----------------------------------------------------------------------

Ran 208 tests in 42.522s

FAILED (errors=76, skipped=1)
Warning -- files was modified by test_zipfile
  Before: []
  After:  ['@test_4524_tmp2'] 
test test_zipfile failed
test_pty skipped -- No module named 'termios'
test_posix skipped -- No module named 'posix'
test_multiprocessing_fork skipped -- fork is not available on Windows
test_wait3 skipped -- os.fork not defined
test_crypt skipped -- No module named '_crypt'
test_dbm_ndbm skipped -- No module named '_dbm'
test_wait4 skipped -- object <module 'os' from 'C:\\buildbot.python.org\\3.7.kloth-win64\\build\\lib\\os.py'> has no attribute 'fork'
test_ioctl skipped -- No module named 'fcntl'
test_grp skipped -- No module named 'grp'
test_fork1 skipped -- object <module 'os' from 'C:\\buildbot.python.org\\3.7.kloth-win64\\build\\lib\\os.py'> has no attribute 'fork'
test_fcntl skipped -- No module named 'fcntl'
test_pwd skipped -- No module named 'pwd'
test_syslog skipped -- No module named 'syslog'
C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\support\__init__.py:1033: RuntimeWarning: tests may fail, unable to create temporary directory 'C:\\buildbot.python.org\\3.7.kloth-win64\\build\\build\\test_python_1016': [WinError 183] Cannot create a file when that file already exists: 'C:\\buildbot.python.org\\3.7.kloth-win64\\build\\build\\test_python_1016'
  with temp_dir(path=name, quiet=quiet) as temp_path:
test_spwd skipped -- No module named 'spwd'
test_zipfile64 skipped -- test requires loads of disk-space bytes and a long time to run
test_poll skipped -- select.poll not defined
test_openpty skipped -- os.openpty() not available.
test_curses skipped -- No module named '_curses'
test_threadsignals skipped -- Can't test signal on win32
test_resource skipped -- No module named 'resource'
test_devpoll skipped -- test works only on Solaris OS family
test_multiprocessing_forkserver skipped -- forkserver is not available on Windows
test_nis skipped -- No module named 'nis'
test_gdb skipped -- Couldn't find gdb on the path
test_dbm_gnu skipped -- No module named '_gdbm'
test_pipes skipped -- pipes module only works on posix
test_getdata_filesys (test.test_pkgutil.PkgutilTests) ... ok
test_getdata_zipfile (test.test_pkgutil.PkgutilTests) ... ERROR
test_unreadable_dir_on_syspath (test.test_pkgutil.PkgutilTests) ... ok
test_walk_packages_raises_on_string_or_bytes_input (test.test_pkgutil.PkgutilTests) ... ok
test_walkpackages_filesys (test.test_pkgutil.PkgutilTests) ... ok
test_walkpackages_zipfile (test.test_pkgutil.PkgutilTests)
Tests the same as test_walkpackages_filesys, only with a zip file. ... ERROR
test_alreadyloaded (test.test_pkgutil.PkgutilPEP302Tests) ... ok
test_getdata_pep302 (test.test_pkgutil.PkgutilPEP302Tests) ... ok
test_iter_importers (test.test_pkgutil.ExtendPathTests) ... ok
test_mixed_namespace (test.test_pkgutil.ExtendPathTests) ... ok
test_simple (test.test_pkgutil.ExtendPathTests) ... ok
test_nested (test.test_pkgutil.NestedNamespacePackageTest) ... ok
test_find_loader_avoids_emulation (test.test_pkgutil.ImportlibMigrationTests) ... ok
test_find_loader_missing_module (test.test_pkgutil.ImportlibMigrationTests) ... ok
test_get_importer_avoids_emulation (test.test_pkgutil.ImportlibMigrationTests) ... ok
test_get_loader_None_in_sys_modules (test.test_pkgutil.ImportlibMigrationTests) ... ok
test_get_loader_avoids_emulation (test.test_pkgutil.ImportlibMigrationTests) ... ok
test_get_loader_handles_missing_loader_attribute (test.test_pkgutil.ImportlibMigrationTests) ... ok
test_get_loader_handles_missing_spec_attribute (test.test_pkgutil.ImportlibMigrationTests) ... ok
test_get_loader_handles_spec_attribute_none (test.test_pkgutil.ImportlibMigrationTests) ... ok
test_importer_deprecated (test.test_pkgutil.ImportlibMigrationTests) ... ok
test_iter_importers_avoids_emulation (test.test_pkgutil.ImportlibMigrationTests) ... ok
test_loader_deprecated (test.test_pkgutil.ImportlibMigrationTests) ... ok

======================================================================
ERROR: test_getdata_zipfile (test.test_pkgutil.PkgutilTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\shutil.py", line 513, in rmtree
    return _rmtree_unsafe(path, onerror)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\shutil.py", line 401, in _rmtree_unsafe
    onerror(os.rmdir, path, sys.exc_info())
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\shutil.py", line 399, in _rmtree_unsafe
    os.rmdir(path)
OSError: [WinError 145] The directory is not empty: 'C:\\Users\\Buildbot\\AppData\\Local\\Temp\\tmpovqgzplt'

======================================================================
ERROR: test_walkpackages_zipfile (test.test_pkgutil.PkgutilTests)
Tests the same as test_walkpackages_filesys, only with a zip file.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\shutil.py", line 513, in rmtree
    return _rmtree_unsafe(path, onerror)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\shutil.py", line 401, in _rmtree_unsafe
    onerror(os.rmdir, path, sys.exc_info())
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\shutil.py", line 399, in _rmtree_unsafe
    os.rmdir(path)
OSError: [WinError 145] The directory is not empty: 'C:\\Users\\Buildbot\\AppData\\Local\\Temp\\tmp4pm8jluc'

----------------------------------------------------------------------

Ran 23 tests in 0.179s

FAILED (errors=2)
test test_pkgutil failed
test_tk skipped -- gui not available (WSF_VISIBLE flag not set)
test_epoll skipped -- test works only on Linux 2.6
test test_zipapp failed

Could Not Find C:\buildbot.python.org\3.7.kloth-win64\build\PCbuild\python*.zip

@pablogsal
Copy link
Member

This is a false positive for this PR. In investigating the real reason.

@cjw296
Copy link
Contributor

cjw296 commented Jan 21, 2019

Thanks. It's interesting that @miss-islington said everything was okay, I wonder if this build has known intermittent failures?

@pablogsal
Copy link
Member

pablogsal commented Jan 21, 2019

@cjw296 This message comes from the buildbots, so there are a trillion more possible failures there as the commits run in lots of different platform and architectures. There are race conditions and false positives. That's why we made this message they way I'd written.

The tests that are run in GitHub are only ran on a very limited subset of configurations. That's why everything was ok here but not on the buildbots.

@bedevere-bot
Copy link

⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️

Hi! The buildbot AMD64 Windows7 SP1 3.7 has failed when building commit d358a8c.

What do you need to do:

  1. Don't panic.
  2. Check the buildbot page in the devguide if you don't know what the buildbots are or how they work.
  3. Go to the page of the buildbot that failed (https://buildbot.python.org/all/#builders/130/builds/638) and take a look at the build logs.
  4. Check if the failure is related to this commit (d358a8c) or if it is a false positive.
  5. If the failure is related to this commit, please, reflect that on the issue and make a new Pull Request with a fix.

You can take a look at the buildbot page here:

https://buildbot.python.org/all/#builders/130/builds/638

Click to see traceback logs
Reset branch '3.7'

Could Not Find C:\buildbot.python.org\3.7.kloth-win64\build\Lib\*.pyc
The system cannot find the file specified.
Could Not Find C:\buildbot.python.org\3.7.kloth-win64\build\PCbuild\python*.zip

test_kqueue skipped -- test works only on BSD
test_spwd skipped -- No module named 'spwd'
test_nis skipped -- No module named 'nis'
test_devpoll skipped -- test works only on Solaris OS family
test_tix skipped -- gui not available (WSF_VISIBLE flag not set)
test_gdb skipped -- Couldn't find gdb on the path
test_xxtestfuzz skipped -- No module named '_xxtestfuzz'
test_ossaudiodev skipped -- No module named 'ossaudiodev'
minkernel\crts\ucrt\src\appcrt\lowio\write.cpp(50) : Assertion failed: (_osfile(fh) & FOPEN)
test_curses skipped -- No module named '_curses'
test_ttk_guionly skipped -- gui not available (WSF_VISIBLE flag not set)
test_openpty skipped -- os.openpty() not available.
test_grp skipped -- No module named 'grp'
test_multiprocessing_forkserver skipped -- forkserver is not available on Windows
test_pwd skipped -- No module named 'pwd'
test_pty skipped -- No module named 'termios'
test_cmdline_copy (test.test_zipapp.ZipAppCmdlineTest) ... ok
test_cmdline_copy_change_main (test.test_zipapp.ZipAppCmdlineTest) ... ok
test_cmdline_copy_inplace (test.test_zipapp.ZipAppCmdlineTest) ... ok
test_cmdline_create (test.test_zipapp.ZipAppCmdlineTest) ... ok
test_info_command (test.test_zipapp.ZipAppCmdlineTest) ... ok
test_info_error (test.test_zipapp.ZipAppCmdlineTest) ... ok
test_content_of_copied_archive (test.test_zipapp.ZipAppTest) ... ok
test_create_archive (test.test_zipapp.ZipAppTest) ... ok
test_create_archive_default_target (test.test_zipapp.ZipAppTest) ... ok
test_create_archive_filter_exclude_dir (test.test_zipapp.ZipAppTest) ... ERROR
test_create_archive_with_compression (test.test_zipapp.ZipAppTest) ... ERROR
test_create_archive_with_filter (test.test_zipapp.ZipAppTest) ... ok
test_create_archive_with_pathlib (test.test_zipapp.ZipAppTest) ... ok
test_create_archive_with_subdirs (test.test_zipapp.ZipAppTest) ... ok
test_custom_interpreter (test.test_zipapp.ZipAppTest) ... ok
test_default_no_shebang (test.test_zipapp.ZipAppTest) ... ok
test_main_and_main_py (test.test_zipapp.ZipAppTest) ... ok
test_main_only_written_once (test.test_zipapp.ZipAppTest) ... ERROR
test_main_validation (test.test_zipapp.ZipAppTest) ... ok
test_main_written (test.test_zipapp.ZipAppTest) ... ERROR
test_modify_shebang (test.test_zipapp.ZipAppTest) ... ok
test_no_main (test.test_zipapp.ZipAppTest) ... ok
test_no_shebang_is_not_executable (test.test_zipapp.ZipAppTest) ... skipped 'Windows does not support an executable bit'
test_pack_to_fileobj (test.test_zipapp.ZipAppTest) ... ok
test_read_from_fileobj (test.test_zipapp.ZipAppTest) ... ok
test_read_from_pathobj (test.test_zipapp.ZipAppTest) ... ok
test_read_missing_shebang (test.test_zipapp.ZipAppTest) ... ok
test_read_shebang (test.test_zipapp.ZipAppTest) ... ok
test_remove_shebang (test.test_zipapp.ZipAppTest) ... ok
test_shebang_is_executable (test.test_zipapp.ZipAppTest) ... skipped 'Windows does not support an executable bit'
test_write_shebang_to_fileobj (test.test_zipapp.ZipAppTest) ... ok

======================================================================
ERROR: test_create_archive_filter_exclude_dir (test.test_zipapp.ZipAppTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\tempfile.py", line 809, in cleanup
    _shutil.rmtree(self.name)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\shutil.py", line 513, in rmtree
    return _rmtree_unsafe(path, onerror)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\shutil.py", line 401, in _rmtree_unsafe
    onerror(os.rmdir, path, sys.exc_info())
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\shutil.py", line 399, in _rmtree_unsafe
    os.rmdir(path)
OSError: [WinError 145] The directory is not empty: 'C:\\Users\\Buildbot\\AppData\\Local\\Temp\\tmpxao0r0o4'

======================================================================
ERROR: test_create_archive_with_compression (test.test_zipapp.ZipAppTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\tempfile.py", line 809, in cleanup
    _shutil.rmtree(self.name)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\shutil.py", line 513, in rmtree
    return _rmtree_unsafe(path, onerror)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\shutil.py", line 401, in _rmtree_unsafe
    onerror(os.rmdir, path, sys.exc_info())
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\shutil.py", line 399, in _rmtree_unsafe
    os.rmdir(path)
OSError: [WinError 145] The directory is not empty: 'C:\\Users\\Buildbot\\AppData\\Local\\Temp\\tmphsf0a59h'

======================================================================
ERROR: test_main_only_written_once (test.test_zipapp.ZipAppTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\tempfile.py", line 809, in cleanup
    _shutil.rmtree(self.name)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\shutil.py", line 513, in rmtree
    return _rmtree_unsafe(path, onerror)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\shutil.py", line 401, in _rmtree_unsafe
    onerror(os.rmdir, path, sys.exc_info())
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\shutil.py", line 399, in _rmtree_unsafe
    os.rmdir(path)
OSError: [WinError 145] The directory is not empty: 'C:\\Users\\Buildbot\\AppData\\Local\\Temp\\tmpusxhtz0e'

======================================================================
ERROR: test_main_written (test.test_zipapp.ZipAppTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\tempfile.py", line 809, in cleanup
    _shutil.rmtree(self.name)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\shutil.py", line 513, in rmtree
    return _rmtree_unsafe(path, onerror)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\shutil.py", line 401, in _rmtree_unsafe
    onerror(os.rmdir, path, sys.exc_info())
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\shutil.py", line 399, in _rmtree_unsafe
    os.rmdir(path)
OSError: [WinError 145] The directory is not empty: 'C:\\Users\\Buildbot\\AppData\\Local\\Temp\\tmp4ed85ao6'

----------------------------------------------------------------------

Ran 31 tests in 0.175s

FAILED (errors=4, skipped=2)
test test_zipapp failed
test_epoll skipped -- test works only on Linux 2.6
test_fork1 skipped -- object <module 'os' from 'C:\\buildbot.python.org\\3.7.kloth-win64\\build\\lib\\os.py'> has no attribute 'fork'
test_syslog skipped -- No module named 'syslog'
test_fcntl skipped -- No module named 'fcntl'
test_tk skipped -- gui not available (WSF_VISIBLE flag not set)
test_crypt skipped -- No module named '_crypt'
test_altinstall_default_pip_conflict (test.test_ensurepip.TestBootstrap) ... ok
test_basic_bootstrapping (test.test_ensurepip.TestBootstrap) ... ok
test_bootstrapping_with_alt_install (test.test_ensurepip.TestBootstrap) ... ok
test_bootstrapping_with_default_pip (test.test_ensurepip.TestBootstrap) ... ok
test_bootstrapping_with_regular_install (test.test_ensurepip.TestBootstrap) ... ok
test_bootstrapping_with_root (test.test_ensurepip.TestBootstrap) ... ok
test_bootstrapping_with_upgrade (test.test_ensurepip.TestBootstrap) ... ERROR
test_bootstrapping_with_user (test.test_ensurepip.TestBootstrap) ... ok
test_bootstrapping_with_verbosity_1 (test.test_ensurepip.TestBootstrap) ... ok
test_bootstrapping_with_verbosity_2 (test.test_ensurepip.TestBootstrap) ... ok
test_bootstrapping_with_verbosity_3 (test.test_ensurepip.TestBootstrap) ... ok
test_pip_config_file_disabled (test.test_ensurepip.TestBootstrap) ... ok
test_pip_environment_variables_removed (test.test_ensurepip.TestBootstrap) ... ok
test_basic_bootstrapping (test.test_ensurepip.TestBootstrappingMainFunction) ... ERROR
test_bootstrap_version (test.test_ensurepip.TestBootstrappingMainFunction) ... ok
test_bootstrapping_error_code (test.test_ensurepip.TestBootstrappingMainFunction) ... ok
test_returns_version (test.test_ensurepip.TestEnsurePipVersion) ... ok
test_pip_config_file_disabled (test.test_ensurepip.TestUninstall) ... ok
test_pip_environment_variables_removed (test.test_ensurepip.TestUninstall) ... ok
test_uninstall (test.test_ensurepip.TestUninstall) ... ok
test_uninstall_skipped_when_not_installed (test.test_ensurepip.TestUninstall) ... ok
test_uninstall_skipped_with_warning_for_wrong_version (test.test_ensurepip.TestUninstall) ... ok
test_uninstall_with_verbosity_1 (test.test_ensurepip.TestUninstall) ... ok
test_uninstall_with_verbosity_2 (test.test_ensurepip.TestUninstall) ... ok
test_uninstall_with_verbosity_3 (test.test_ensurepip.TestUninstall) ... ok
test_basic_uninstall (test.test_ensurepip.TestUninstallationMainFunction) ... ok
test_uninstall_error_code (test.test_ensurepip.TestUninstallationMainFunction) ... ok
test_uninstall_version (test.test_ensurepip.TestUninstallationMainFunction) ... ok

======================================================================
ERROR: test_bootstrapping_with_upgrade (test.test_ensurepip.TestBootstrap)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_ensurepip.py", line 76, in test_bootstrapping_with_upgrade
    ensurepip.bootstrap(upgrade=True)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\ensurepip\__init__.py", line 61, in bootstrap
    verbosity=verbosity)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\ensurepip\__init__.py", line 117, in _bootstrap
    return _run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\tempfile.py", line 805, in __exit__
    self.cleanup()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\tempfile.py", line 809, in cleanup
    _shutil.rmtree(self.name)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\shutil.py", line 513, in rmtree
    return _rmtree_unsafe(path, onerror)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\shutil.py", line 401, in _rmtree_unsafe
    onerror(os.rmdir, path, sys.exc_info())
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\shutil.py", line 399, in _rmtree_unsafe
    os.rmdir(path)
OSError: [WinError 145] The directory is not empty: 'C:\\Users\\Buildbot\\AppData\\Local\\Temp\\tmpn6yk0731'

======================================================================
ERROR: test_basic_bootstrapping (test.test_ensurepip.TestBootstrappingMainFunction)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\test\test_ensurepip.py", line 259, in test_basic_bootstrapping
    exit_code = ensurepip._main([])
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\ensurepip\__init__.py", line 204, in _main
    default_pip=args.default_pip,
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\ensurepip\__init__.py", line 117, in _bootstrap
    return _run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\tempfile.py", line 805, in __exit__
    self.cleanup()
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\tempfile.py", line 809, in cleanup
    _shutil.rmtree(self.name)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\shutil.py", line 513, in rmtree
    return _rmtree_unsafe(path, onerror)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\shutil.py", line 401, in _rmtree_unsafe
    onerror(os.rmdir, path, sys.exc_info())
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\shutil.py", line 399, in _rmtree_unsafe
    os.rmdir(path)
OSError: [WinError 145] The directory is not empty: 'C:\\Users\\Buildbot\\AppData\\Local\\Temp\\tmpngydw67j'

----------------------------------------------------------------------

Ran 28 tests in 0.354s

FAILED (errors=2)
test test_ensurepip failed
test_multiprocessing_fork skipped -- fork is not available on Windows
test_zipfile64 skipped -- test requires loads of disk-space bytes and a long time to run
test_pipes skipped -- pipes module only works on posix
test_ioctl skipped -- No module named 'fcntl'
test_poll skipped -- select.poll not defined
test_dbm_gnu skipped -- No module named '_gdbm'
test_getdata_filesys (test.test_pkgutil.PkgutilTests) ... ok
test_getdata_zipfile (test.test_pkgutil.PkgutilTests) ... ERROR
test_unreadable_dir_on_syspath (test.test_pkgutil.PkgutilTests) ... ok
test_walk_packages_raises_on_string_or_bytes_input (test.test_pkgutil.PkgutilTests) ... ok
test_walkpackages_filesys (test.test_pkgutil.PkgutilTests) ... ok
test_walkpackages_zipfile (test.test_pkgutil.PkgutilTests)
Tests the same as test_walkpackages_filesys, only with a zip file. ... ok
test_alreadyloaded (test.test_pkgutil.PkgutilPEP302Tests) ... ok
test_getdata_pep302 (test.test_pkgutil.PkgutilPEP302Tests) ... ok
test_iter_importers (test.test_pkgutil.ExtendPathTests) ... ok
test_mixed_namespace (test.test_pkgutil.ExtendPathTests) ... ok
test_simple (test.test_pkgutil.ExtendPathTests) ... ok
test_nested (test.test_pkgutil.NestedNamespacePackageTest) ... ok
test_find_loader_avoids_emulation (test.test_pkgutil.ImportlibMigrationTests) ... ok
test_find_loader_missing_module (test.test_pkgutil.ImportlibMigrationTests) ... ok
test_get_importer_avoids_emulation (test.test_pkgutil.ImportlibMigrationTests) ... ok
test_get_loader_None_in_sys_modules (test.test_pkgutil.ImportlibMigrationTests) ... ok
test_get_loader_avoids_emulation (test.test_pkgutil.ImportlibMigrationTests) ... ok
test_get_loader_handles_missing_loader_attribute (test.test_pkgutil.ImportlibMigrationTests) ... ok
test_get_loader_handles_missing_spec_attribute (test.test_pkgutil.ImportlibMigrationTests) ... ok
test_get_loader_handles_spec_attribute_none (test.test_pkgutil.ImportlibMigrationTests) ... ok
test_importer_deprecated (test.test_pkgutil.ImportlibMigrationTests) ... ok
test_iter_importers_avoids_emulation (test.test_pkgutil.ImportlibMigrationTests) ... ok
test_loader_deprecated (test.test_pkgutil.ImportlibMigrationTests) ... ok

======================================================================
ERROR: test_getdata_zipfile (test.test_pkgutil.PkgutilTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\shutil.py", line 513, in rmtree
    return _rmtree_unsafe(path, onerror)
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\shutil.py", line 401, in _rmtree_unsafe
    onerror(os.rmdir, path, sys.exc_info())
  File "C:\buildbot.python.org\3.7.kloth-win64\build\lib\shutil.py", line 399, in _rmtree_unsafe
    os.rmdir(path)
OSError: [WinError 145] The directory is not empty: 'C:\\Users\\Buildbot\\AppData\\Local\\Temp\\tmprpswl2u3'

----------------------------------------------------------------------

Ran 23 tests in 0.213s

FAILED (errors=1)
test test_pkgutil failed
test_readline skipped -- No module named 'readline'
test_dbm_ndbm skipped -- No module named '_dbm'
test_wait3 skipped -- os.fork not defined
test_resource skipped -- No module named 'resource'
test_threadsignals skipped -- Can't test signal on win32
test_wait4 skipped -- object <module 'os' from 'C:\\buildbot.python.org\\3.7.kloth-win64\\build\\lib\\os.py'> has no attribute 'fork'
test_posix skipped -- No module named 'posix'
minkernel\crts\ucrt\src\appcrt\lowio\write.cpp(50) : Assertion failed: (_osfile(fh) & FOPEN)
minkernel\crts\ucrt\src\appcrt\lowio\close.cpp(49) : Assertion failed: (_osfile(fh) & FOPEN)
minkernel\crts\ucrt\src\appcrt\lowio\close.cpp(49) : Assertion failed: (_osfile(fh) & FOPEN)
test test_zipapp failed

Could Not Find C:\buildbot.python.org\3.7.kloth-win64\build\PCbuild\python*.zip

@pablogsal
Copy link
Member

Opened https://bugs.python.org/issue35795 to track the buildbot issue that is confirmed is not related to this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.