diff --git a/tests/test_archives.py b/tests/test_archives.py
index 1490397..b8d39eb 100644
--- a/tests/test_archives.py
+++ b/tests/test_archives.py
@@ -13,7 +13,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
-from . import ArchiveTest, needs_program, needs_codec
+from tests import ArchiveTest, needs_program, needs_codec
class TestArchives (ArchiveTest):
diff --git a/tests/test_foo_archives.py b/tests/test_foo_archives.py
index 9ec1c54..624427e 100644
--- a/tests/test_foo_archives.py
+++ b/tests/test_foo_archives.py
@@ -13,7 +13,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
-from . import ArchiveTest, needs_program, needs_codec
+from tests import ArchiveTest, needs_program, needs_codec
class TestArchives (ArchiveTest):
diff --git a/tests/test_mime.py b/tests/test_mime.py
index ef35722..f28ac65 100644
--- a/tests/test_mime.py
+++ b/tests/test_mime.py
@@ -16,7 +16,7 @@
import unittest
import os
import patoolib
-from . import needs_program, datadir
+from tests import needs_program, datadir
class TestMime (unittest.TestCase):