File tree 2 files changed +11
-5
lines changed
2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -161,10 +161,15 @@ def test_sc16301_arrow_extra_estimate_dense(self):
161
161
with tiledb .open (uri ) as A :
162
162
tiledb .stats_enable ()
163
163
A [:]
164
- assert (
165
- """"Context.StorageManager.Query.Reader.loop_num": 1"""
166
- in tiledb .stats_dump (print_out = False )
167
- )
164
+
165
+ stats_dump_str = tiledb .stats_dump (print_out = False )
166
+ if tiledb .libtiledb .version () >= (2 , 27 ):
167
+ assert """"Context.Query.Reader.loop_num": 1""" in stats_dump_str
168
+ else :
169
+ assert (
170
+ """"Context.StorageManager.Query.Reader.loop_num": 1"""
171
+ in stats_dump_str
172
+ )
168
173
tiledb .stats_disable ()
169
174
170
175
@pytest .mark .skipif (
Original file line number Diff line number Diff line change @@ -3500,7 +3500,8 @@ def test_query(self):
3500
3500
q [:]
3501
3501
3502
3502
stats = q .get_stats (print_out = False )
3503
- assert "Context.StorageManager.Query" in stats
3503
+ # check that the stats are non-empty
3504
+ assert stats
3504
3505
3505
3506
3506
3507
class NullableIOTest (DiskTestCase ):
You can’t perform that action at this time.
0 commit comments