From patchwork Mon Nov 8 19:27:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierre-Jean Texier X-Patchwork-Id: 1552513 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=ddUUTmh5; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Hp1N31jfkz9s1l for ; Tue, 9 Nov 2021 06:27:31 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 91EF480DE3; Mon, 8 Nov 2021 19:27:28 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OhOqCGngEGHj; Mon, 8 Nov 2021 19:27:27 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id F201C80DA0; Mon, 8 Nov 2021 19:27:26 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 3EAAC1BF311 for ; Mon, 8 Nov 2021 19:27:17 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 2CEAD40003 for ; Mon, 8 Nov 2021 19:27:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp2.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id noXwg2MRWE0X for ; Mon, 8 Nov 2021 19:27:16 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by smtp2.osuosl.org (Postfix) with ESMTPS id 5FCCA400C5 for ; Mon, 8 Nov 2021 19:27:16 +0000 (UTC) Received: by mail-wr1-x42e.google.com with SMTP id t30so28789091wra.10 for ; Mon, 08 Nov 2021 11:27:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+BRghd5ITMRWE4WGpcHSeV0ovAbZs7Q5J0NyB83zNT0=; b=ddUUTmh5Z9PBWivqtJ2rdKDElLWeGqcu8zTLK3vo9L2JMFNhr7L09M007VbDmq68rk ZZbAjFNMg1VTCPiEEephm/KvY8aKQrNJJs6fzwWZZZDQgo81WfYJVfWZMcbN2bJMMN1v AQ0CiKpIIF98zFQ1KXaXqgna3FybhpXAeohIOncXCiaXyG1KzuQOvBUDj9sfLc67PMY7 bl3oQ3btEc3bZPCRh7epY+ha+OWYBZSvTs1Gb+NkzuvUqMc33wBhFeJYy71/i7C5zguX KT2ONEsQcWdUwNqZ8CwAbpkF2jMU2jNn4qN9PVKqCqL2Rehdm+MehFNCy00Uvel6H0Uo 42Cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+BRghd5ITMRWE4WGpcHSeV0ovAbZs7Q5J0NyB83zNT0=; b=CaheFHxK7DGCkziJeQ6JYf3OGwqpJiN+W8U3QO7frMiIPN5tmVh7+4B1U3Qd6eSpZm TzrSowL1mAU5bdsMZT9pNQtFMcfR0uQBsF5rqLFb3yZmKmjIrW/wAEiXs9ngg9UvVh+w ajt+yDFT/QlJE8hBEFAinyJy7LZAZKzS3Aud08Jj9uGX08yMwNebYUMllHfH9uRYFZnH QNG4Jsr3KFlTeyS6vZy+2DknW8Q6nytzf3tVYJwiu7rwwvKfb3PCOwPZeW93Te/UQ+06 A2UM0TDmmFJy7mhWDwVLNZUOHraxy/l1ZK+HmNcg7ozW6Jbrb3N+2ihJlfyHFDY/4n/u 8iIg== X-Gm-Message-State: AOAM530Mm5k4ELEa9JqoWTfc2/FN+zAgWBlvXOmzPN7cDm/ygofuARNm eFQK3jqy8dcaBO2G96u7ZmMVps5RiUtL3g== X-Google-Smtp-Source: ABdhPJwJsNdDZ8Ef5nCQr05VmGqw027cbzBIZPLJ1cAi27BtPx0tXjVZ4VAMs7/XYzBQBliLlKWEFw== X-Received: by 2002:a5d:5986:: with SMTP id n6mr1859664wri.297.1636399633196; Mon, 08 Nov 2021 11:27:13 -0800 (PST) Received: from menoah.home ([2a01:cb19:190:c500:f823:1d08:390b:d00e]) by smtp.gmail.com with ESMTPSA id r1sm256016wmr.36.2021.11.08.11.27.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Nov 2021 11:27:12 -0800 (PST) From: Pierre-Jean Texier To: buildroot@buildroot.org Date: Mon, 8 Nov 2021 20:27:06 +0100 Message-Id: <20211108192706.456116-2-texier.pj2@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211108192706.456116-1-texier.pj2@gmail.com> References: <20211108192706.456116-1-texier.pj2@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH] support/testing/tests/package/sample_python_unittest_xml_reporting.py: fix flake8 warnings X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Pierre-Jean Texier , Thomas Petazzoni , Ricardo Martincoski Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Fixes: support/testing/tests/package/sample_python_unittest_xml_reporting.py:4:1: E302 expected 2 blank lines, found 1 support/testing/tests/package/sample_python_unittest_xml_reporting.py:8:1: E305 expected 2 blank lines after class or function definition, found 1 1 E302 expected 2 blank lines, found 1 1 E305 expected 2 blank lines after class or function definition, found 1 Signed-off-by: Pierre-Jean Texier --- .../tests/package/sample_python_unittest_xml_reporting.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/support/testing/tests/package/sample_python_unittest_xml_reporting.py b/support/testing/tests/package/sample_python_unittest_xml_reporting.py index 8fa92aaccc..cfef4df22a 100644 --- a/support/testing/tests/package/sample_python_unittest_xml_reporting.py +++ b/support/testing/tests/package/sample_python_unittest_xml_reporting.py @@ -1,9 +1,11 @@ import unittest import xmlrunner + class Test1(unittest.TestCase): def test_something(self): self.assertTrue(True) + if __name__ == '__main__': unittest.main(testRunner=xmlrunner.XMLTestRunner(output='test-reports'))