prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Delete setup.cfg
  `setup.cfg` was used to set configuration options for `pytest` in the past, but since `pytest.ini` is now providing that configuration, it seems like `setup.cfg` should be deleted.
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `testinfra/conftest.py`
  Content:
  ```
  1 """
  2 Configuration for TestInfra test suite for SecureDrop.
  3 Handles importing host-specific test vars, so test functions
  4 can be reused across multiple hosts, with varied targets.
  5 
  6 Vars should be placed in `testinfra/vars/<hostname>.yml`.
  7 """
  8 
  9 import os
  10 import yaml
  11 
  12 
  13 target_host = os.environ['SECUREDROP_TESTINFRA_TARGET_HOST']
  14 assert target_host != ""
  15 
  16 
  17 def securedrop_import_testinfra_vars(hostname, with_header=False):
  18     """
  19     Import vars from a YAML file to populate tests with host-specific
  20     values used in checks. For instance, the SecureDrop docroot will
  21     be under /vagrant in development, but /var/www/securedrop in staging.
  22 
  23     Vars must be stored in `testinfra/vars/<hostname>.yml`.
  24     """
  25     filepath = os.path.join(os.path.dirname(__file__), "vars", hostname+".yml")
  26     with open(filepath, 'r') as f:
  27         hostvars = yaml.safe_load(f)
  28     # The directory Travis runs builds in varies by PR, so we cannot hardcode
  29     # it in the YAML testvars. Read it from env var and concatenate.
  30     if hostname.lower() == 'travis':
  31         build_env = os.environ["TRAVIS_BUILD_DIR"]
  32         hostvars['securedrop_code'] = build_env+"/securedrop"
  33 
  34     if with_header:
  35         hostvars = dict(securedrop_test_vars=hostvars)
  36     return hostvars
  37 
  38 
  39 def pytest_namespace():
  40     return securedrop_import_testinfra_vars(target_host, with_header=True)
  41
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/testinfra/conftest.py b/testinfra/conftest.py
  --- a/testinfra/conftest.py
  +++ b/testinfra/conftest.py
  @@ -25,11 +25,6 @@
       filepath = os.path.join(os.path.dirname(__file__), "vars", hostname+".yml")
       with open(filepath, 'r') as f:
           hostvars = yaml.safe_load(f)
  -    # The directory Travis runs builds in varies by PR, so we cannot hardcode
  -    # it in the YAML testvars. Read it from env var and concatenate.
  -    if hostname.lower() == 'travis':
  -        build_env = os.environ["TRAVIS_BUILD_DIR"]
  -        hostvars['securedrop_code'] = build_env+"/securedrop"
   
       if with_header:
           hostvars = dict(securedrop_test_vars=hostvars)
  
verification_info: {"golden_diff": "diff --git a/testinfra/conftest.py b/testinfra/conftest.py\n--- a/testinfra/conftest.py\n+++ b/testinfra/conftest.py\n@@ -25,11 +25,6 @@\n     filepath = os.path.join(os.path.dirname(__file__), \"vars\", hostname+\".yml\")\n     with open(filepath, 'r') as f:\n         hostvars = yaml.safe_load(f)\n-    # The directory Travis runs builds in varies by PR, so we cannot hardcode\n-    # it in the YAML testvars. Read it from env var and concatenate.\n-    if hostname.lower() == 'travis':\n-        build_env = os.environ[\"TRAVIS_BUILD_DIR\"]\n-        hostvars['securedrop_code'] = build_env+\"/securedrop\"\n \n     if with_header:\n         hostvars = dict(securedrop_test_vars=hostvars)\n", "issue": "Delete setup.cfg\n`setup.cfg` was used to set configuration options for `pytest` in the past, but since `pytest.ini` is now providing that configuration, it seems like `setup.cfg` should be deleted.\n", "before_files": [{"content": "\"\"\"\nConfiguration for TestInfra test suite for SecureDrop.\nHandles importing host-specific test vars, so test functions\ncan be reused across multiple hosts, with varied targets.\n\nVars should be placed in `testinfra/vars/<hostname>.yml`.\n\"\"\"\n\nimport os\nimport yaml\n\n\ntarget_host = os.environ['SECUREDROP_TESTINFRA_TARGET_HOST']\nassert target_host != \"\"\n\n\ndef securedrop_import_testinfra_vars(hostname, with_header=False):\n    \"\"\"\n    Import vars from a YAML file to populate tests with host-specific\n    values used in checks. For instance, the SecureDrop docroot will\n    be under /vagrant in development, but /var/www/securedrop in staging.\n\n    Vars must be stored in `testinfra/vars/<hostname>.yml`.\n    \"\"\"\n    filepath = os.path.join(os.path.dirname(__file__), \"vars\", hostname+\".yml\")\n    with open(filepath, 'r') as f:\n        hostvars = yaml.safe_load(f)\n    # The directory Travis runs builds in varies by PR, so we cannot hardcode\n    # it in the YAML testvars. Read it from env var and concatenate.\n    if hostname.lower() == 'travis':\n        build_env = os.environ[\"TRAVIS_BUILD_DIR\"]\n        hostvars['securedrop_code'] = build_env+\"/securedrop\"\n\n    if with_header:\n        hostvars = dict(securedrop_test_vars=hostvars)\n    return hostvars\n\n\ndef pytest_namespace():\n    return securedrop_import_testinfra_vars(target_host, with_header=True)\n", "path": "testinfra/conftest.py"}], "after_files": [{"content": "\"\"\"\nConfiguration for TestInfra test suite for SecureDrop.\nHandles importing host-specific test vars, so test functions\ncan be reused across multiple hosts, with varied targets.\n\nVars should be placed in `testinfra/vars/<hostname>.yml`.\n\"\"\"\n\nimport os\nimport yaml\n\n\ntarget_host = os.environ['SECUREDROP_TESTINFRA_TARGET_HOST']\nassert target_host != \"\"\n\n\ndef securedrop_import_testinfra_vars(hostname, with_header=False):\n    \"\"\"\n    Import vars from a YAML file to populate tests with host-specific\n    values used in checks. For instance, the SecureDrop docroot will\n    be under /vagrant in development, but /var/www/securedrop in staging.\n\n    Vars must be stored in `testinfra/vars/<hostname>.yml`.\n    \"\"\"\n    filepath = os.path.join(os.path.dirname(__file__), \"vars\", hostname+\".yml\")\n    with open(filepath, 'r') as f:\n        hostvars = yaml.safe_load(f)\n\n    if with_header:\n        hostvars = dict(securedrop_test_vars=hostvars)\n    return hostvars\n\n\ndef pytest_namespace():\n    return securedrop_import_testinfra_vars(target_host, with_header=True)\n", "path": "testinfra/conftest.py"}]}