From nobody Fri Apr 19 11:08:42 2024 Delivered-To: importer2@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=patchew-devel-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1543344516905409.70249162921755; Tue, 27 Nov 2018 10:48:36 -0800 (PST) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7F3D0B4CB; Tue, 27 Nov 2018 18:48:35 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6F69D600C8; Tue, 27 Nov 2018 18:48:35 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 62E7F18005AD; Tue, 27 Nov 2018 18:48:35 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id wARImYWq008946 for ; Tue, 27 Nov 2018 13:48:34 -0500 Received: by smtp.corp.redhat.com (Postfix) id CA69310018F8; Tue, 27 Nov 2018 18:48:34 +0000 (UTC) Received: from donizetti.redhat.com (ovpn-112-42.ams2.redhat.com [10.36.112.42]) by smtp.corp.redhat.com (Postfix) with ESMTP id C6319100034A; Tue, 27 Nov 2018 18:48:30 +0000 (UTC) From: Paolo Bonzini To: patchew-devel@redhat.com Date: Tue, 27 Nov 2018 19:48:29 +0100 Message-Id: <20181127184829.32520-1-pbonzini@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: patchew-devel@redhat.com Subject: [Patchew-devel] [PATCH v2] tests: fix test_tags for Python < 3.6 X-BeenThere: patchew-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Patchew development and discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: quoted-printable Sender: patchew-devel-bounces@redhat.com Errors-To: patchew-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Tue, 27 Nov 2018 18:48:35 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Older versions of Python require importing subpackages explicitly; you cannot just import the parent and look for subpackages using dot notation. Fix this. Signed-off-by: Paolo Bonzini Reviewed-by: Caio Carrara --- tests/test_tags.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_tags.py b/tests/test_tags.py index a49a660..075c497 100755 --- a/tests/test_tags.py +++ b/tests/test_tags.py @@ -13,6 +13,8 @@ import os sys.path.append(os.path.dirname(__file__)) from tests.patchewtest import PatchewTestCase, main import email +import email.parser +import email.policy from mbox import decode_payload =20 class ImportTest(PatchewTestCase): --=20 2.19.1 _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://www.redhat.com/mailman/listinfo/patchew-devel