old_contents: import pytest
  import redis.connection
  
  try:
      redis.connection.Connection().connect()
  except redis.connection.ConnectionError:
      cant_connect = True
  else:
      cant_connect = False
  
  
  rq_redis = pytest.mark.skipif(cant_connect, reason="can't connect to Redis")
  
new_contents: import pytest
  from django_rq.queues import get_connection
  
  try:
      get_connection().ping()
  except redis.exceptions.ConnectionError:
      cant_connect = True
  else:
      cant_connect = False
  
  
  rq_redis = pytest.mark.skipif(cant_connect, reason="can't connect to Redis")
  
subject: Fix dev redis testing