summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_all.py2
-rw-r--r--tests/test_aptsources.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_all.py b/tests/test_all.py
index dc603dfd..d561a9ae 100644
--- a/tests/test_all.py
+++ b/tests/test_all.py
@@ -10,7 +10,7 @@ import unittest
import sys
if __name__ == '__main__':
- print("[tests] Running on %s" % sys.version.replace("\n", ""))
+ sys.stderr.write("[tests] Running on %s\n" % sys.version.replace("\n", ""))
os.chdir(os.path.dirname(__file__))
# Find the path to the built apt_pkg and apt_inst extensions
if os.path.exists("../build"):
diff --git a/tests/test_aptsources.py b/tests/test_aptsources.py
index 0f7f078b..767f5244 100644
--- a/tests/test_aptsources.py
+++ b/tests/test_aptsources.py
@@ -14,6 +14,8 @@ class TestAptSources(unittest.TestCase):
def setUp(self):
apt_pkg.init_config()
apt_pkg.init_system()
+ if apt_pkg.config["APT::Architecture"] not in ('i386', 'amd64'):
+ apt_pkg.config.set("APT::Architecture", "i386")
apt_pkg.config.set("Dir::Etc", os.getcwd())
apt_pkg.config.set("Dir::Etc::sourceparts", "/xxx")
if os.path.exists("../build/data/templates"):