Kaydet (Commit) 6af967ae authored tarafından Michael Stahl's avatar Michael Stahl

Revert "PythonTest_dbaccess_python: don't modify source document"

This reverts commit 29474c7a.

Removing the lock file fails on Windows because it is opened; it ought
be possible to close the document instead to clean up the lock file?

Change-Id: I2c93fc893c62d6a267be9723761e5ed7577086a7
üst 87cb3a7c
......@@ -7,10 +7,8 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
import os
import unittest
from collections import deque
import unohelper
from org.libreoffice.unotest import UnoInProcess
class Fdo84315(unittest.TestCase):
......@@ -25,10 +23,7 @@ class Fdo84315(unittest.TestCase):
@classmethod
def tearDownClass(cls):
# Closing the connection properly would modify the source document for some reason.
lock = unohelper.fileUrlToSystemPath(cls._xDoc.URL) + ".lck"
cls._uno.tearDown()
os.remove(lock)
def test_fdo84315(self):
xDoc = self.__class__._xDoc
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment