Skip to content

Commit

Permalink
disable over_the_write.txt for py26
Browse files Browse the repository at this point in the history
  • Loading branch information
agroszer committed Nov 9, 2015
1 parent 6263448 commit 2ca2677
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/z3c/etestbrowser/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from zope.app.testing import functional
import doctest
import os.path
import sys
import unittest
import z3c.etestbrowser
import zope.app.wsgi.testlayer
Expand All @@ -37,13 +38,16 @@ def setUpWSGI(test):
def test_suite():
suite = unittest.TestSuite()

test = functional.FunctionalDocFileSuite(
"README.txt",
"over_the_wire.txt",
optionflags=doctest.REPORT_NDIFF|doctest.NORMALIZE_WHITESPACE|
doctest.ELLIPSIS)
test.layer = layer
suite.addTest(test)
if sys.version_info[:2] != (2, 6):
# py26 testbrowser CAN open http://google.com/ncr, but py27 can't
# disable the test for py26
test = functional.FunctionalDocFileSuite(
"README.txt",
"over_the_wire.txt",
optionflags=doctest.REPORT_NDIFF|doctest.NORMALIZE_WHITESPACE|
doctest.ELLIPSIS)
test.layer = layer
suite.addTest(test)

wsgi_test = doctest.DocFileSuite(
"wsgi.txt",
Expand Down

0 comments on commit 2ca2677

Please sign in to comment.