From: Ben Darnell Date: Thu, 14 Jun 2012 07:28:15 +0000 (-0700) Subject: Ignore ImportWarnings in tests. X-Git-Tag: v2.4.0~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb5a62df6cabf7805081d13d4985c6da325c7443;p=thirdparty%2Ftornado.git Ignore ImportWarnings in tests. I can't reproduce this, but apparently in some situations setuptools throws warnings about unrelated packages, so just turn them all off. Closes #524 --- diff --git a/tornado/test/runtests.py b/tornado/test/runtests.py index 4235aba18..66e90f2bd 100755 --- a/tornado/test/runtests.py +++ b/tornado/test/runtests.py @@ -42,6 +42,9 @@ if __name__ == '__main__': # ignored by default, including DeprecationWarnings and # python 3.2's ResourceWarnings. warnings.filterwarnings("error") + # setuptools sometimes gives ImportWarnings about things that are on + # sys.path even if they're not being used. + warnings.filterwarnings("ignore", category=ImportWarning) # Tornado generally shouldn't use anything deprecated, but some of # our dependencies do (last match wins). warnings.filterwarnings("ignore", category=DeprecationWarning)