
    nf                     ~    d dl Z d dlmZ d dlmZ d dlmZ ddlmZ e j                  j                  d      d        Zy)	    N)path)test)Distribution   )DALS
tmpdir_cwdc                    t        dg      ddj                  fdD              z   dz   dt        d      d	d
}t        j                  |       t              }d|_        t        |      }|j                          |j                          | j                         \  }}|j                  d      sJ t        |j                  d            dk(  sJ y )Ndummy)packagesz$from setuptools import setup; setup(,c              3   2   K   | ]  }| d |     yw)=N ).0nameparamss     r/var/dept/share/cheung/public_html/OutSchool/python/env/lib/python3.12/site-packages/setuptools/tests/test_test.py	<genexpr>z*test_tests_are_run_once.<locals>.<genexpr>   s!     A$dV1VD\,-As   ) z
                import unittest
                class TestTest(unittest.TestCase):
                    def test_test(self):
                        print('Foo')
                )z__init__.pyztest_dummy.py)setup.pyr
   r   zFoo
Foo   )dictjoinr   r   buildr   script_namer   ensure_finalizedrun
readouterrendswithlensplit)capfdfilesdistcmdouterrr   s         @r   test_tests_are_run_oncer*   
   s    F ;
((A&A
AB
 !

	E  	JJuD!D
t*CGGI!HC<<   syy A%%%    )pytestjaracor   setuptools.command.testr   setuptools.distr   textwrapr   markusefixturesr*   r   r+   r   <module>r3      s7      ( (  && '&r+   