• Éric Araujo's avatar
    Clean up extra environment variable after packaging tests. · 2b612220
    Éric Araujo authored
    packaging.util.check_environ will define HOME and PLAT if they don’t exist; for
    some reason, it does not define PLAT when running the tests from a checkout (so
    no regrtest warning) but does when running from an installed Python.
    
    Cleaning up the envvar in test_dist fixes the warning on my machine, but I
    suspect that a test runner using a different order to run files or running them
    in parallel may have PLAT defined in its environment because of another test.
    Quite a lot of code ends up calling check_environ; maybe we should just clean
    up PLAT in every test.  For now I’m doing this simple fix, we’ll see if we get
    bug reports.
    2b612220
test_dist.py 15.9 KB