Skip to content

Commit

Permalink
Fix failing tests (#2162)
Browse files Browse the repository at this point in the history
* Fix current domain test
* Fix dask test
  • Loading branch information
kounelisagis authored Feb 14, 2025
1 parent 486ace1 commit 3bafb00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tiledb/tests/test_current_domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,4 +351,4 @@ def test_take_current_domain_into_account_sparse_indexing_sc61914(self):
assert_array_equal(A[:]["a"], expected_array["a"])

expected_df = pd.DataFrame(expected_array)
assert pd.DataFrame.equals(A.df[:], expected_df)
assert_array_equal(A.df[:], expected_df)
8 changes: 1 addition & 7 deletions tiledb/tests/test_dask.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import sys
import warnings
from datetime import datetime

import numpy as np
import pytest
from distributed.comm.core import CommClosedError
from tornado.iostream import StreamClosedError

import tiledb

Expand Down Expand Up @@ -44,9 +40,7 @@ def _make_multiattr_2d(self, uri, shape=(0, 100), tile=10):

tiledb.DenseArray.create(uri, schema)

@pytest.mark.flaky(
reruns=3, reruns_delay=2, only_rerun=(CommClosedError, StreamClosedError)
)
@pytest.mark.flaky(reruns=3, reruns_delay=2, rerun_except="TileDBError")
@pytest.mark.filterwarnings("ignore:There is no current event loop")
def test_dask_multiattr_2d(self):
uri = self.path("multiattr")
Expand Down

0 comments on commit 3bafb00

Please sign in to comment.