From d0f09cdc71d7fb9d624cd8b0ab7cce4b17b32b9a Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Mon, 19 Mar 2018 01:56:33 -0700 Subject: [PATCH] Correctly display error when running setup.py test. We display an error if someone tries to run setup.py test (saying that one should run tests.py instead), but that doesn't get displayed if test.local_freetype is set in setup.cfg -- because the test command considers that equivalent to passing a (non-existent) local_freetype option to it, and fails first during argument parsing. As a solution, display the error in the constructor of the command instead. --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 668bc5b0cf2f..b5ebb4a160b7 100644 --- a/setup.py +++ b/setup.py @@ -125,9 +125,9 @@ class NoopTestCommand(TestCommand): - def run(self): + def __init__(self, dist): print("Matplotlib does not support running tests with " - "'python setup.py test'. Please run 'python tests.py'") + "'python setup.py test'. Please run 'python tests.py'.") class BuildExtraLibraries(BuildExtCommand): pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy