Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 0 additions & 31 deletions tiledb/tests/test_fixes.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,37 +246,6 @@ def test_py1078_df_all_empty_strings(self):
with tiledb.open(uri) as arr:
tm.assert_frame_equal(arr.df[:], df)

@pytest.mark.skipif(
tiledb.libtiledb.version() < (2, 14, 0),
reason="SC-23287 fix not implemented until libtiledb 2.14",
)
@pytest.mark.skipif(
sys.platform == "win32",
reason="TODO does not run on windows due to env passthrough",
)
def test_sc23827_aws_region(self):
# Test for SC-23287
# The expected behavior here for `vfs.s3.region` is:
# - default to '' if no environment variables are set
# - empty if AWS_REGION or AWS_DEFAULT_REGION is set (to any value)

def get_config_with_env(env, key):
python_exe = sys.executable
cmd = """import tiledb; print(tiledb.Config()[\"{}\"])""".format(key)
test_path = os.path.dirname(os.path.abspath(__file__))

sp_output = subprocess.check_output(
[python_exe, "-c", cmd], cwd=test_path, env=env
)
return sp_output.decode("UTF-8").strip()

if tiledb.libtiledb.version() >= (2, 27, 0):
assert get_config_with_env({}, "vfs.s3.region") == ""
else:
assert get_config_with_env({}, "vfs.s3.region") == "us-east-1"
assert get_config_with_env({"AWS_DEFAULT_REGION": ""}, "vfs.s3.region") == ""
assert get_config_with_env({"AWS_REGION": ""}, "vfs.s3.region") == ""

@pytest.mark.skipif(not has_pandas(), reason="pandas>=1.0,<3.0 not installed")
@pytest.mark.parametrize("is_sparse", [True, False])
def test_sc1430_nonexisting_timestamp(self, is_sparse):
Expand Down
Loading