diff --git a/tests/test_utilities/test_csvsql.py b/tests/test_utilities/test_csvsql.py index e06dd456a..9d49d54e8 100644 --- a/tests/test_utilities/test_csvsql.py +++ b/tests/test_utilities/test_csvsql.py @@ -22,10 +22,8 @@ def setUp(self): self.db_file = 'foo.db' def tearDown(self): - try: + if os.path.exists(self.db_file): os.remove(self.db_file) - except OSError: - pass def test_create_table(self): sql = self.get_output(['--tables', 'foo', 'examples/testfixed_converted.csv'])