Skip to content

Commit

Permalink
fix test teardown on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
apdavison committed Feb 21, 2024
1 parent 4c5b2c9 commit a100251
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/unittests/test_connectors_serial.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,10 @@ def tearDown(self, sim=sim):
sim.end()
for path in ("test.connections", "test.connections.1", "test.connections.2"):
if os.path.exists(path):
os.remove(path)
try:
os.remove(path)
except PermissionError:
pass

def test_connect_with_standard_text_file_not_distributed(self, sim=sim):
np.savetxt("test.connections", self.connection_list)
Expand Down

0 comments on commit a100251

Please sign in to comment.