old_contents: import os
  import sys
  from pathlib import Path
  
  import pytest
  
  
  if sys.version_info < (3, 4):
      print("Requires Python 3.4+")
      sys.exit(1)
  
  
  TESTS_ROOT = os.path.abspath(os.path.dirname(__file__))
  PROJECT_ROOT = os.path.dirname(TESTS_ROOT)
  
  
  @pytest.fixture
  def resources():
      return Path(TESTS_ROOT) / 'resources'
  
  
  @pytest.fixture(scope="function")
  def outdir(tmp_path):
      return tmp_path
  
  
  @pytest.fixture(scope="function")
  def outpdf(tmp_path):
      return tmp_path / 'out.pdf'
  
new_contents: import os
  import sys
  from pathlib import Path
  
  import pytest
  
  if sys.version_info < (3, 4):
      print("Requires Python 3.4+")
      sys.exit(1)
  
  
  TESTS_ROOT = os.path.abspath(os.path.dirname(__file__))
  PROJECT_ROOT = os.path.dirname(TESTS_ROOT)
  
  
  @pytest.fixture(scope="session")
  def resources():
      return Path(TESTS_ROOT) / 'resources'
  
  
  @pytest.fixture(scope="function")
  def outdir(tmp_path):
      return tmp_path
  
  
  @pytest.fixture(scope="function")
  def outpdf(tmp_path):
      return tmp_path / 'out.pdf'
  
subject: Fix warning from hypothesis above scope of resources() fixture