[Python-Dev] Tests failing on Windows with TESTFN
Giampaolo Rodola'
g.rodola at gmail.com
Fri Jul 27 10:58:57 EDT 2018
On Fri, Jul 27, 2018 at 4:48 PM Chris Jerdonek <chris.jerdonek at gmail.com> wrote:
>
> On Fri, Jul 27, 2018 at 6:41 AM, Giampaolo Rodola' <g.rodola at gmail.com> wrote:
> >
> > Being TESTFN a global name it appears not suited for parallel testing.
>
> It was designed for parallel testing though:
>
> # Disambiguate TESTFN for parallel testing, while letting it remain a valid
> # module name.
> TESTFN = "{}_{}_tmp".format(TESTFN, os.getpid())
>
> https://github.com/python/cpython/blob/aee632dfbb0abbc0d2bcc988c43a736afd568c55/Lib/test/support/__init__.py#L807-L809
Oh, nice, I didn't notice that, sorry.
More information about the Python-Dev
mailing list