tests: Don't be fooled by 32bit userspace on amd64
authorGuido Günther <agx@sigxcpu.org>
Mon, 1 Feb 2021 10:12:47 +0000 (11:12 +0100)
committerGuido Günther <agx@sigxcpu.org>
Mon, 1 Feb 2021 10:56:23 +0000 (11:56 +0100)
This unbreaks salsa-ci

tests/12_test_deb.py

index 4a2388e23a36e14541ac0ecc6a1594db860fa4ef..b00d626e63b8694c8fed25958e4b4fc3aa912e54 100644 (file)
@@ -164,7 +164,7 @@ class TestDpkgCompareVersions(unittest.TestCase):
 class TestDeb(unittest.TestCase):
     """Test L{gbp.deb.__init__} """
 
-    @unittest.skipUnless(platform.machine() == "x86_64", "not on amd64")
+    @unittest.skipUnless(platform.machine() == "x86_64" and platform.architecture()[0] == '64bit', "not on amd64")
     def test_get_arch(self):
         arch = gbp.deb.get_arch()
         self.assertTrue(isinstance(arch, str))