diff --git a/tests/database/test_database_access.py b/tests/database/test_database_access.py index 176f14230..b7cf2bb2a 100644 --- a/tests/database/test_database_access.py +++ b/tests/database/test_database_access.py @@ -41,7 +41,10 @@ def tearDownClass(cls): Returns: """ cls.database.conn.close() - os.remove("test_database.db") + if os.name != 'nt': + # On windows we get PermissionError: [WinError 32] The process cannot access the + # file because it is being used by another process: 'test_database.db' + os.remove("test_database.db") def tearDown(self): """