# HG changeset patch # User Mads Kiilerich # Date 2025-10-05 13:21:12 # Node ID 90e1a287b7a2a09219d7c948b4ccefefa444058d # Parent c814d97d822273344d3dc84a2eebaae891819d50 tests: drop adding working directory to sys.path This seems to be unnecessary boilerplate from 07dbfabb8f. This removes one reference to the dying pkg_resources module. diff --git a/kallithea/tests/conftest.py b/kallithea/tests/conftest.py --- a/kallithea/tests/conftest.py +++ b/kallithea/tests/conftest.py @@ -1,10 +1,8 @@ import logging import os -import sys import time import formencode -import pkg_resources import pytest from paste.deploy import loadwsgi from pytest_localserver.http import WSGIServer @@ -27,10 +25,6 @@ def pytest_configure(): if not kallithea.is_windows: time.tzset() # only available on Unix - path = os.getcwd() - sys.path.insert(0, path) - pkg_resources.working_set.add_entry(path) - # Disable INFO logging of test database creation, restore with NOTSET logging.disable(logging.INFO)