old_contents: from __future__ import print_function
  
  import os
  from subprocess import check_call
  import pytest
  
  ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
  official = open(os.path.join(ROOT_DIR, "QUARK_VERSION.txt")).read().strip()
  try:
      dirty = open(os.path.join(ROOT_DIR, "QUARK_VERSION-dirty.txt")).read().strip()
      QUARK_VERSION = dirty
      QUARK_VERSION_STATUS = "Overriding the quark version %s with the local quark version %s" % (official, dirty)
  except FileNotFoundError:
      QUARK_VERSION = official
      QUARK_VERSION_STATUS = "Testing with quark version %s, QUARK_VERSION-dirty.txt not found" % (official)
  # Git tag starts with v, but the Docker tag does not:
  if QUARK_VERSION.startswith("v"):
      QUARK_VERSION = QUARK_VERSION[1:]
  
  
  def pytest_report_header(config):
      return QUARK_VERSION_STATUS
  
  def run(filepath, language):
      """Install and run a Quark test file."""
      docker_path = os.path.join("/code",
                                 filepath[len(ROOT_DIR) + 1:])
      print("Installing and running {} in {}...".format(filepath, language))
      check_call(["sudo", "docker", "run",
                  # Mount volume into container so Docker can access quark files:
                  "-v", ROOT_DIR + ":/code",] +
                  ["datawire/quark-run:" + QUARK_VERSION, "--" + language, '--verbose', docker_path])
  
  @pytest.fixture
  def quark_run(request):
      return run
  
  @pytest.fixture(params= ["python3", "python", "java", "ruby", "javascript"])
  def quark_language(request):
      return request.param
  
new_contents: from __future__ import print_function
  
  import os
  from subprocess import check_call
  import pytest
  
  ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
  official = open(os.path.join(ROOT_DIR, "QUARK_VERSION.txt")).read().strip()
  try:
      dirty = open(os.path.join(ROOT_DIR, "QUARK_VERSION-dirty.txt")).read().strip()
      QUARK_VERSION = dirty
      QUARK_VERSION_STATUS = "Overriding the quark version %s with the local quark version %s" % (official, dirty)
  except IOError:
      QUARK_VERSION = official
      QUARK_VERSION_STATUS = "Testing with quark version %s, QUARK_VERSION-dirty.txt not found" % (official)
  # Git tag starts with v, but the Docker tag does not:
  if QUARK_VERSION.startswith("v"):
      QUARK_VERSION = QUARK_VERSION[1:]
  
  
  def pytest_report_header(config):
      return QUARK_VERSION_STATUS
  
  def run(filepath, language):
      """Install and run a Quark test file."""
      docker_path = os.path.join("/code",
                                 filepath[len(ROOT_DIR) + 1:])
      print("Installing and running {} in {}...".format(filepath, language))
      check_call(["sudo", "docker", "run",
                  # Mount volume into container so Docker can access quark files:
                  "-v", ROOT_DIR + ":/code",] +
                  ["datawire/quark-run:" + QUARK_VERSION, "--" + language, '--verbose', docker_path])
  
  @pytest.fixture
  def quark_run(request):
      return run
  
  @pytest.fixture(params= ["python3", "python", "java", "ruby", "javascript"])
  def quark_language(request):
      return request.param
  
subject: kill python3-ism