Группа :: Разработка/Python
Пакет: python3-module-dkimpy
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: 0001-Don-t-rely-on-relative-import.patch
Скачать
Скачать
From fd7fc09d761ab6203afe40da3dec0c4fcf43270f Mon Sep 17 00:00:00 2001
From: Stanislav Levin <slev@altlinux.org>
Date: Thu, 11 Mar 2021 00:10:40 +0300
Subject: [PATCH] Don't rely on relative import
Make use of an absolute import to prevent a misimporting.
---
dkim/__main__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dkim/__main__.py b/dkim/__main__.py
index 1e0a02f..1f1b190 100644
--- a/dkim/__main__.py
+++ b/dkim/__main__.py
@@ -1,7 +1,7 @@
import unittest
import doctest
import dkim
-from tests import test_suite
+from dkim.tests import test_suite
doctest.testmod(dkim)
unittest.TextTestRunner().run(test_suite())
--
2.29.2