代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/python-pyaes 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From: Peter Lemenkov <lemenkov@gmail.com>
Date: Fri, 31 Mar 2017 17:49:01 +0300
Subject: [PATCH] Use relative imports during tests
Sometimes you're testing package not from ~/Projects/pyaes or something,
but from ~/Projects/python-pyaes. Let's allow people to rename a
project's top-level directory.
Also let's allow run tests from ./tests/ as well.
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
diff --git a/tests/test-aes.py b/tests/test-aes.py
index afa59aa..35d0a4f 100644
--- a/tests/test-aes.py
+++ b/tests/test-aes.py
@@ -22,7 +22,8 @@
import sys
-sys.path.append('../pyaes')
+sys.path.append('./')
+sys.path.append('../')
from pyaes import *
diff --git a/tests/test-blockfeeder.py b/tests/test-blockfeeder.py
index 41bd487..9781253 100644
--- a/tests/test-blockfeeder.py
+++ b/tests/test-blockfeeder.py
@@ -22,7 +22,8 @@
import sys
-sys.path.append('../pyaes')
+sys.path.append('./')
+sys.path.append('../')
import os
import random
diff --git a/tests/test-util.py b/tests/test-util.py
index db30918..3b1ae7e 100644
--- a/tests/test-util.py
+++ b/tests/test-util.py
@@ -22,7 +22,8 @@
import sys
-sys.path.append('../pyaes')
+sys.path.append('./')
+sys.path.append('../')
from pyaes.util import append_PKCS7_padding, strip_PKCS7_padding
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。