Commit 468eb94a authored by Hanno Schlichting's avatar Hanno Schlichting

Synced the versions with the Zope2 buildout

parent b6205a40
...@@ -415,12 +415,12 @@ ext_modules = [ ...@@ -415,12 +415,12 @@ ext_modules = [
Extension("zope.hookable._zope_hookable", Extension("zope.hookable._zope_hookable",
["zope/hookable/_zope_hookable.c"]), ["zope/hookable/_zope_hookable.c"]),
Extension("zope.app.container._zope_app_container_contained", Extension("zope.container._zope_container_contained",
["zope/app/container/_zope_app_container_contained.c"], ["zope/container/_zope_container_contained.c"],
include_dirs = [".", include_dirs = [".",
"persistent", "persistent",
"zope/proxy", "zope/proxy",
"zope/app/container"], "zope/container"],
depends = [ depends = [
"persistent/cPersistence.h", "persistent/cPersistence.h",
"zope/proxy/_zope_proxy_proxy.c", "zope/proxy/_zope_proxy_proxy.c",
......
...@@ -93,7 +93,7 @@ if ihome: ...@@ -93,7 +93,7 @@ if ihome:
else: else:
defaults += ['--test-path', shome] defaults += ['--test-path', shome]
from zope.testing import testrunner from zope.testing.testrunner import options
def load_config_file(option, opt, config_file, *ignored): def load_config_file(option, opt, config_file, *ignored):
config_file = os.path.abspath(config_file) config_file = os.path.abspath(config_file)
...@@ -101,7 +101,7 @@ def load_config_file(option, opt, config_file, *ignored): ...@@ -101,7 +101,7 @@ def load_config_file(option, opt, config_file, *ignored):
import Zope2 import Zope2
Zope2.configure(config_file) Zope2.configure(config_file)
testrunner.setup.add_option( options.setup.add_option(
'--config-file', action="callback", type="string", dest='config_file', '--config-file', action="callback", type="string", dest='config_file',
callback=load_config_file, callback=load_config_file,
help="""\ help="""\
...@@ -112,10 +112,12 @@ def filter_warnings(option, opt, *ignored): ...@@ -112,10 +112,12 @@ def filter_warnings(option, opt, *ignored):
import warnings import warnings
warnings.simplefilter('ignore', Warning, append=True) warnings.simplefilter('ignore', Warning, append=True)
testrunner.other.add_option( options.other.add_option(
'--nowarnings', action="callback", callback=filter_warnings, '--nowarnings', action="callback", callback=filter_warnings,
help="""\ help="""\
Install a filter to suppress warnings emitted by code. Install a filter to suppress warnings emitted by code.
""") """)
from zope.testing import testrunner
sys.exit(testrunner.run(defaults)) sys.exit(testrunner.run(defaults))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment