[Checkins]
SVN: PluggableAuthService/branches/1.4/plugins/tests/ChallengeProtocolChooser.txt
Defend against stray logging spew when running tests for all
products.
Tres Seaver
tseaver at palladion.com
Tue Apr 24 12:35:49 EDT 2007
Log message for revision 74707:
Defend against stray logging spew when running tests for all products.
Changed:
U PluggableAuthService/branches/1.4/plugins/tests/ChallengeProtocolChooser.txt
-=-
Modified: PluggableAuthService/branches/1.4/plugins/tests/ChallengeProtocolChooser.txt
===================================================================
--- PluggableAuthService/branches/1.4/plugins/tests/ChallengeProtocolChooser.txt 2007-04-24 16:15:34 UTC (rev 74706)
+++ PluggableAuthService/branches/1.4/plugins/tests/ChallengeProtocolChooser.txt 2007-04-24 16:35:48 UTC (rev 74707)
@@ -1,3 +1,13 @@
+Preliminaries
+-------------
+
+Ensure that we don't spew any log messages due to stray configured
+loggers::
+
+ >>> import logging
+ >>> _OLD_LOGGING_MANAGER_DISABLE = logging.Logger.manager.disable
+ >>> logging.Logger.manager.disable = logging.ERROR
+
Challenge Protocol Chooser
--------------------------
@@ -266,3 +276,10 @@
... </methodCall>
... """ % (folder_name), handle_errors=True)
HTTP/1.1 401 Unauthorized...
+
+Cleanup
+-------
+
+Now clean up logging stuff::
+
+ >>> logging.Logger.manager.disable = _OLD_LOGGING_MANAGER_DISABLE
More information about the Checkins
mailing list