diff --git a/tests/test_resources/test_clusters/test_cluster.py b/tests/test_resources/test_clusters/test_cluster.py index 8ab6d02d8..88131da6e 100644 --- a/tests/test_resources/test_clusters/test_cluster.py +++ b/tests/test_resources/test_clusters/test_cluster.py @@ -889,7 +889,7 @@ def test_cluster_run_within_cluster(self, cluster): remote_run = rh.function(run_in_no_env).to(cluster) res = remote_run("echo hello") assert res[0][0] == 0 - assert res[0][1] == "hello\n" + assert res[0][1].strip() == "hello" @pytest.mark.level("local") @pytest.mark.clustertest diff --git a/tests/utils.py b/tests/utils.py index 3aeac1ba4..68b2b3bb9 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -101,7 +101,7 @@ def friend_account_in_org(): def test_env(logged_in=False): return rh.env( - reqs=["pytest", "httpx", "pytest_asyncio", "pandas"], + reqs=["pytest", "httpx", "pytest_asyncio", "pandas", "'numpy<=1.26.4'"], working_dir=None, setup_cmds=[ f"mkdir -p ~/.rh; touch ~/.rh/config.yaml; "