import: always load testcommon from localmodule

Having this import before sys.path.insert() made it load testcommon from
the Debian package.
This commit is contained in:
Hans-Christoph Steiner 2024-05-06 11:13:13 +02:00
parent 1e5699e90c
commit 685efa23d4
6 changed files with 6 additions and 8 deletions

View file

@ -8,7 +8,6 @@ import textwrap
import unittest
import tempfile
from unittest import mock
from testcommon import TmpCwd, TmpPyPath
localmodule = os.path.realpath(
os.path.join(os.path.dirname(inspect.getfile(inspect.currentframe())), '..')
@ -19,6 +18,7 @@ if localmodule not in sys.path:
from fdroidserver import common
import fdroidserver.__main__
from testcommon import TmpCwd, TmpPyPath
class MainTest(unittest.TestCase):