From ac825bd9d489729cfc3a0e7adef3c4a3b26398e0 Mon Sep 17 00:00:00 2001
From: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>
Date: Tue, 27 Jun 2023 05:33:56 -0700
Subject: tests/py-genshi: convert to new stand-alone test process (#38345)

* py-genshi: convert to new stand-alone test process

* py-genshi: add run as py-setuptools deptype; remove test_testsuite comment
---
 var/spack/repos/builtin/packages/py-genshi/package.py | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

(limited to 'var')

diff --git a/var/spack/repos/builtin/packages/py-genshi/package.py b/var/spack/repos/builtin/packages/py-genshi/package.py
index 72e580791d..0027757f55 100644
--- a/var/spack/repos/builtin/packages/py-genshi/package.py
+++ b/var/spack/repos/builtin/packages/py-genshi/package.py
@@ -13,13 +13,8 @@ class PyGenshi(PythonPackage):
 
     version("0.7.7", sha256="c100520862cd69085d10ee1a87e91289e7f59f6b3d9bd622bf58b2804e6b9aab")
 
-    depends_on("py-setuptools", type="build")
+    depends_on("py-setuptools", type=("build", "run"))
     depends_on("py-six", type=("build", "run", "test"))
 
-    def test(self):
-        # All the unittests pass for py-genshi@0.7.7 but 14 tests fail for
-        # @0.6.1:0.7, many of them related to templates, likely because the
-        # template path needs to be setup.  But those versions didn't use tox
-        # and setting up the test environment to find the template files doesn't
-        # seem to be documented.
+    def test_testsuite(self):
         python("-m", "unittest", "-v", "genshi.tests.suite")
-- 
cgit v1.2.3-70-g09d2