[Checkins] [zopefoundation/ZODB] b09ac5: tests: close storages before deleting them

GitHub noreply at github.com
Tue Aug 2 18:26:19 CEST 2016


  Branch: refs/heads/issue60
  Home:   https://github.com/zopefoundation/ZODB
  Commit: b09ac52df559452ec50e835d4d137b5c3a332414
      https://github.com/zopefoundation/ZODB/commit/b09ac52df559452ec50e835d4d137b5c3a332414
  Author: Julien Muchembled <jm at nexedi.com>
  Date:   2016-08-02 (Tue, 02 Aug 2016)

  Changed paths:
    M src/ZODB/tests/StorageTestBase.py

  Log Message:
  -----------
  tests: close storages before deleting them

On Windows, testFileStorage was failing as follows:

    Traceback (most recent call last):
      File "c:\Python34_64\lib\unittest\case.py", line 58, in testPartExecutor
  yield
      File "c:\Python34_64\lib\unittest\case.py", line 580, in run
  self.tearDown()
      File "c:\buildslave\zodb_dev_py_340_win64\build\src\ZODB\tests\StorageTestBase.py", line 123, in tearDown
  ZODB.tests.util.TestCase.tearDown(self)
      File "c:\buildslave\zodb_dev_py_340_win64\build\src\ZODB\tests\util.py", line 77, in tearDown
  zope.testing.setupstack.tearDown(test)
      File "d:\eggs\zope.testing-4.5.0-py3.4.egg\zope\testing\setupstack.py", line 44, in tearDown
  f(*p, **k)
      File "d:\eggs\zope.testing-4.5.0-py3.4.egg\zope\testing\setupstack.py", line 59, in rmtree
  os.remove(fname)
    PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'c:\\buildslave\\ZODB_dev_py_340_win64\\build\\parts\\test\\tmp\\SetstateErrorLoggingTests16lrclke\\FileStorageTestszpghewns\\FileStorageTests.fs'




More information about the checkins mailing list