From 708cf866ab9848748e9adbe2da8380a6db225ee0 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Mar 25 2020 08:22:22 +0000 Subject: Drop an unnecessary Python 2 vs 3 incompatibility from the test Python 2 speaks about 'type' whereas 3 speaks about 'class', which from our perspective is just unnecessary pain with no gain. (cherry picked from commit ff3d8ac2e5cb4456ad1355f227f3ccef08e01972) --- diff --git a/tests/rpmpython.at b/tests/rpmpython.at index 16610e6..5d51c74 100644 --- a/tests/rpmpython.at +++ b/tests/rpmpython.at @@ -92,7 +92,7 @@ h['arch'] = 'noarch' myprint(h['nevra']) del h['epoch'] myprint(h['nevra']) -for a in ['name', 'bugurl', '__class__', '__foo__', ]: +for a in ['name', 'bugurl', '__foo__', ]: try: x = getattr(h, a) myprint(x) @@ -103,7 +103,6 @@ for a in ['name', 'bugurl', '__class__', '__foo__', ]: testpkg-1.0-1.noarch testpkg None - 'rpm.hdr' object has no attribute '__foo__'] )