Skip to content

Commit

Permalink
Merge pull request #1 from zopefoundation/sylvain-update-toolkit-vers…
Browse files Browse the repository at this point in the history
…ions

Sylvain update toolkit versions
  • Loading branch information
thefunny42 committed Jan 29, 2016
2 parents 82da6a9 + f7ce197 commit 5971c1e
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 17 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
language: python
python:
- 2.6
- 2.7
install:
- python bootstrap.py
Expand Down
2 changes: 1 addition & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Changes
1.8 (unreleased)
----------------

- Nothing changed yet.
- Update tests.


1.7 (2015-06-11)
Expand Down
9 changes: 7 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
include *.txt *.py
recursive-include src *.*
global-include *.mo
include *.txt
include *.rst
include bootstrap.py
include buildout.cfg
include .travis.yml
recursive-include src *.py *.zcml
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from setuptools import setup, find_packages
import os


def read(*rnames):
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()

Expand All @@ -14,7 +15,6 @@ def read(*rnames):
'zope.app.appsetup',
'zope.component',
'zope.configuration',
'zope.location',
'zope.testing',
'grokcore.content',
]
Expand Down
2 changes: 1 addition & 1 deletion src/grokcore/site/ftests/site/site.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
grok.Container.
>>> from zope import interface
>>> from zope.location.interfaces import IPossibleSite, ISite
>>> from zope.component.interfaces import IPossibleSite, ISite
>>> manfred = Mammoth()
>>> IPossibleSite.providedBy(manfred)
True
Expand Down
6 changes: 3 additions & 3 deletions src/grokcore/site/ftests/test_grok_functional.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import doctest
import unittest
import grokcore.site

from pkg_resources import resource_listdir
from zope.testing import doctest

from zope.app.appsetup.testlayer import ZODBLayer
import grokcore.site

FunctionalLayer = ZODBLayer(grokcore.site)

Expand Down
21 changes: 12 additions & 9 deletions src/grokcore/site/tests/test_grok.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
import doctest
import re
import unittest
from pkg_resources import resource_listdir
from zope.testing import doctest, cleanup, renormalizing

from zope.testing import cleanup, renormalizing
import zope.component.eventtesting

checker = renormalizing.RENormalizing([
# str(Exception) has changed from Python 2.4 to 2.5 (due to
# Exception now being a new-style class). This changes the way
# exceptions appear in traceback printouts.
(re.compile(r"ConfigurationExecutionError: <class '([\w.]+)'>:"),
r'ConfigurationExecutionError: \1:')])
(re.compile(
r"ConfigurationExecutionError: <class '([\w.]+)'>:"),
r'ConfigurationExecutionError: \1:')])


def setUpZope(test):
Expand All @@ -32,12 +35,12 @@ def suiteFromPackage(name):
continue

dottedname = 'grokcore.site.tests.%s.%s' % (name, filename[:-3])
test = doctest.DocTestSuite(dottedname,
setUp=setUpZope,
tearDown=cleanUpZope,
checker=checker,
optionflags=doctest.ELLIPSIS +
doctest.NORMALIZE_WHITESPACE)
test = doctest.DocTestSuite(
dottedname,
setUp=setUpZope,
tearDown=cleanUpZope,
checker=checker,
optionflags=doctest.ELLIPSIS + doctest.NORMALIZE_WHITESPACE)

suite.addTest(test)
return suite
Expand Down

0 comments on commit 5971c1e

Please sign in to comment.