From patchwork Mon May 27 03:51:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov via arch-projects X-Patchwork-Id: 1129 Return-Path: Delivered-To: patchwork@archlinux.org Received: from apollo.archlinux.org (localhost [127.0.0.1]) by apollo.archlinux.org (Postfix) with ESMTP id 41931EE9BC74 for ; Mon, 27 May 2019 03:51:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on apollo X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED=0.1, DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1,MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3,SPF_HELO_NONE=0.001,T_DKIMWL_WL_HIGH=-0.01, T_DMARC_POLICY_NONE=0.01 autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-BL-Results: [127.0.9.2] Received: from orion.archlinux.org (orion.archlinux.org [IPv6:2a01:4f8:160:6087::1]) by apollo.archlinux.org (Postfix) with ESMTPS for ; Mon, 27 May 2019 03:51:29 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id 3A72E12DA03ABC; Mon, 27 May 2019 03:51:25 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [IPv6:2a01:4f8:160:3033::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits)) (No client certificate requested) by orion.archlinux.org (Postfix) with ESMTPS; Mon, 27 May 2019 03:51:25 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id 233F42C43A; Mon, 27 May 2019 03:51:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=archlinux.org; s=luna2; t=1558929085; bh=EsB5kP3Nl8IPEXB7rRQFaI2V5MZNkPE4HBpH7WHYtC8=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc; b=RoLqRyBzJZC6KtP2adJUkjjnDM4PzidUF6GjEdIC7htj6dz9WhTq/U6Hg/TREtGD2 LLFTGUAXirWsRsk0aPFGss0/pK7ZWF8jCtpGZC+nvl3EJLbS+hzxoP65wUG74XL8rA gGLJ50CViKRdZ0asFHf2PlqEW94gESDFg/d5JL3DSovlFAiEOFDydSEZZX4Kub21sV PwsSgSOmR8SGlt/puZbUa7lhX9phWZbYMy1TC2dxlA9Z2kZMfIzwacLIlTnmqOoQzE lG2yP6MgNbQiKfUTLRDr5r5A8/Q4MylSna2qirIeW2/APxAp0bNoBQUsfAB58X5mIH t0Gq9ImNmQZ55SOgNNHBOo2tcl/Prdw5FvoU5uYUIP3cHDdajyhiQPKkCXA6wTh3uV m28h7kZz6k/NW/nZ5qdr1FS8wSEB/eupSq4qHYr3FQndGIJtrJjyAfJZPUkJJdgva7 3m1jIthyZ8ncRgmV8mDAJxvv0WAbHnsdNkfPAAspSjlH5KAaHyCmXWPuNfJ/0enuiQ tW7TIT8ROSiteEhmuXwWf0sCZsTza1A98XjICTWPFUxkujrQDlHwzDT7SZLLnALloT iScd5V4ZxCaBCQCt2zGh7IHvrDeREs8Botivs22ljwBAqFY59iQOpfeAIwPD9mkPF4 VRwj8EhQc8zAYdoQBETjAJ/E= Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id 8C6AA2C405 for ; Mon, 27 May 2019 03:51:22 +0000 (UTC) Received: from orion.archlinux.org (orion.archlinux.org [88.198.91.70]) by luna.archlinux.org (Postfix) with ESMTPS for ; Mon, 27 May 2019 03:51:22 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id 98C2712DA03ABA for ; Mon, 27 May 2019 03:51:21 +0000 (UTC) Received: from mail-it1-x144.google.com (mail-it1-x144.google.com [IPv6:2607:f8b0:4864:20::144]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by orion.archlinux.org (Postfix) with ESMTPS for ; Mon, 27 May 2019 03:51:21 +0000 (UTC) Received: by mail-it1-x144.google.com with SMTP id a186so14918317itg.0 for ; Sun, 26 May 2019 20:51:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=rz6tKHf6dCoC8yOfiUaWoNWGYrQFBwRQB3EqEMxRe+0=; b=VMspZ3WxmaeCPSnWIixD05kHsSbe6odx1xFm1DW5xI34Ggv6LgCybNnIbNLFhuA8p1 1jl8pnwId5Ax+b53lLko4nZ5B/Gvmn1eTtoFhXfTfzeAtKULLu5hA/8APVjl6cok+lWC ekrArCLU5rUszYANtETm4TIojM3kA/tyu46gqFA+cOQtOpoQQgWXyVkX9W+fKS503uZq WuDaO8vunRFK7X8TlvK0ySUQxW0Pk2CSiMRCJVqJTpp2XFGv/1gqsSnwYZ7HohPE7Hq2 D7fOkyUMMjGjS01xkMll4A0XlN0w9ULZ8Ck9zzpJ5KkttNPSYl4KMyPtjrzPmJQ8y1Rv 3qOQ== X-Gm-Message-State: APjAAAXeaX8coPMyfx5lSdgCUig+Z5p2Q+pN+cT76woNhGU+A56eEvEo 0ayW6WfVExmDjb9Ilgw9k+QrreRS X-Google-Smtp-Source: APXvYqx/cqEFsntFwbsbFhPtKPdd6BSoc6NpMOUpgOgX1L7qfc0nYf9+kS2mE+b9MN6Un8A0sUkUHw== X-Received: by 2002:a02:cb50:: with SMTP id k16mr22121399jap.38.1558929079973; Sun, 26 May 2019 20:51:19 -0700 (PDT) Received: from newKvm.localdomain ([2601:402:4580:e98::9943]) by smtp.gmail.com with ESMTPSA id g124sm4622843itg.12.2019.05.26.20.51.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 May 2019 20:51:19 -0700 (PDT) To: arch-projects@archlinux.org Date: Sun, 26 May 2019 23:51:15 -0400 Message-Id: <20190527035115.28028-1-jamespharvey20@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [arch-projects] [namcap] [PATCH] Add warning about following case of preSetUp() X-BeenThere: arch-projects@archlinux.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Arch Linux projects development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: "James P. Harvey via arch-projects" Reply-To: Arch Linux projects development discussion Cc: "James P. Harvey" Errors-To: arch-projects-bounces@archlinux.org Sender: "arch-projects" Spent too much time figuring out why I was getting an error of "object has no attribute 'rule'". Perhaps it's correct spelling and grammer for "set up" to be two words here, being used as a verb, but I wasn't expecting that. Maybe this will help someone someday. Signed off by: James P. Harvey --- README | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README b/README index c90315e..e7f07d2 100644 --- a/README +++ b/README @@ -160,6 +160,9 @@ class NamcapPkgnameInDescTest(PkgbuildTest): * the preSetUp() method sets the rule to be used in the test +* note the case, using preSetup() will cause the error "object has no attribute + 'rule'" + * the test_example1() method runs the rule on the given PKGBUILD and tests whether the results are as expected