[Checkins] SVN: zope.testbrowser/branches/tseaver-suppress_over_the_wire/src/zope/testbrowser/tests.py Don't run over_the_wire.txt tests without special permission.

Tres Seaver tseaver at palladion.com
Sat May 31 13:59:08 EDT 2008


Log message for revision 87071:
  Don't run over_the_wire.txt tests without special permission.

Changed:
  U   zope.testbrowser/branches/tseaver-suppress_over_the_wire/src/zope/testbrowser/tests.py

-=-
Modified: zope.testbrowser/branches/tseaver-suppress_over_the_wire/src/zope/testbrowser/tests.py
===================================================================
--- zope.testbrowser/branches/tseaver-suppress_over_the_wire/src/zope/testbrowser/tests.py	2008-05-31 17:56:48 UTC (rev 87070)
+++ zope.testbrowser/branches/tseaver-suppress_over_the_wire/src/zope/testbrowser/tests.py	2008-05-31 17:59:08 UTC (rev 87071)
@@ -386,11 +386,17 @@
     readme = FunctionalDocFileSuite('README.txt', optionflags=flags,
         checker=checker)
     readme.layer = TestBrowserLayer
+    # XXX:  this test is really inappropriate for running in any automated
+    #       context.  Among other things, it causes the automated Zope2 test
+    #       to fail because Google now classes it as a rogue robot.
     wire = FunctionalDocFileSuite('over_the_wire.txt', optionflags=flags)
     wire.level = 2
     wire.layer = TestBrowserLayer
     this_file = doctest.DocTestSuite(checker=checker)
-    return unittest.TestSuite((this_file, readme, wire))
+    TO_RUN = (this_file, readme)
+    if os.environ.get('RUN_OVER_THE_WIRE') is not None:
+        TO_RUN.append(wire)
+    return unittest.TestSuite(TO_RUN)
 
 if __name__ == '__main__':
     unittest.main(defaultTest='test_suite')



More information about the Checkins mailing list