Remove unneccessary try-finally block from debugging
@@ -293,7 +293,7 @@ class PandasDataFrameRoundtrip(DiskTestCase):
def test_csv_col_to_sparse_dims(self):
df = make_dataframe_basic3(20)
- try:
+ # Test 1: basic round-trip
tmp_dir = self.path("csv_col_to_sparse_dims")
os.mkdir(tmp_dir)
tmp_csv = os.path.join(tmp_dir, "generated.csv")
@@ -306,13 +306,5 @@ class PandasDataFrameRoundtrip(DiskTestCase):
tiledb.from_csv(tmp_array, tmp_csv, index_col=['time', 'double_range'], parse_dates=['time'])
df_bk = tiledb.open_dataframe(tmp_array)
- tm.assert_frame_equal(df, df_bk)
- tmp_array2 = os.path.join(tmp_dir, "array2")
- # also check that from_csv(..., sparse=True) works
- tiledb.from_csv(tmp_array2, tmp_csv, sparse=True)
- print("hello")
-
- finally:
- pass
- #os.remove(tmp_csv)
\ No newline at end of file
+ tm.assert_frame_equal(df, df_bk)
\ No newline at end of file
