You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pylucene-commits@lucene.apache.org by va...@apache.org on 2016/09/08 09:02:49 UTC
svn commit: r1759767 - /lucene/pylucene/trunk/test/test_PyLucene.py
Author: vajda
Date: Thu Sep 8 09:02:49 2016
New Revision: 1759767
URL: http://svn.apache.org/viewvc?rev=1759767&view=rev
Log:
bypass some exceptions on Windows
Modified:
lucene/pylucene/trunk/test/test_PyLucene.py
Modified: lucene/pylucene/trunk/test/test_PyLucene.py
URL: http://svn.apache.org/viewvc/lucene/pylucene/trunk/test/test_PyLucene.py?rev=1759767&r1=1759766&r2=1759767&view=diff
==============================================================================
--- lucene/pylucene/trunk/test/test_PyLucene.py (original)
+++ lucene/pylucene/trunk/test/test_PyLucene.py Thu Sep 8 09:02:49 2016
@@ -312,7 +312,12 @@ class Test_PyLuceneWithFSStore(unittest.
def tearDown(self):
if os.path.exists(self.STORE_DIR):
- shutil.rmtree(self.STORE_DIR)
+ try:
+ shutil.rmtree(self.STORE_DIR)
+ except WindowsError:
+ # maybe leaking file handles in closing stores
+ # does not affect other tests
+ pass
def openStore(self):