class_docstr: Test that no user info (e.g. runtime env env vars) show up in the logs.
class_docstr_tok: ["Test","that","no","user","info","(","e.g",".","runtime","env","env","vars",")","show","up","in","the","logs","."]
docstr: Test assert_no_user_info_in_logs does not spuriously pass.
docstr_tok: ["Test","assert_no_user_info_in_logs","does","not","spuriously","pass","."]
code: def test_assert_no_user_info_in_logs(self, shutdown_only):
      """Test assert_no_user_info_in_logs does not spuriously pass."""
      ray.init()
      with pytest.raises(AssertionError):
          assert_no_user_info_in_logs("ray")
      assert_no_user_info_in_logs("ray", file_whitelist=["*"])
  
file_path: ray/python/ray/tests/test_runtime_env_2.py
imports: import pytest
  import time
  import sys
  import fnmatch
  import os
  from typing import List
  import ray
  from ray.dashboard.modules.job.common import JobStatus
  from ray.exceptions import RuntimeEnvSetupError
  from ray.runtime_env import RuntimeEnv, RuntimeEnvConfig
  from ray._private.test_utils import wait_for_condition
label_desc: Use image node_id 1 for calling the TestNoUserInfoInLogs obj's underlying member method code with example usage: obj.test_assert_no_user_info_in_logs(shutdown_only) without return types