[Zope3-checkins] SVN: zdaemon/trunk/ Updated to reflect split of zope.testrunner and zope.testing.
jim
cvs-admin at zope.org
Fri May 25 20:28:14 UTC 2012
Log message for revision 126501:
Updated to reflect split of zope.testrunner and zope.testing.
Addressed deprecation warnings.
Changed:
U zdaemon/trunk/buildout.cfg
U zdaemon/trunk/setup.py
U zdaemon/trunk/src/zdaemon/tests/tests.py
-=-
Modified: zdaemon/trunk/buildout.cfg
===================================================================
--- zdaemon/trunk/buildout.cfg 2012-05-25 19:10:43 UTC (rev 126500)
+++ zdaemon/trunk/buildout.cfg 2012-05-25 20:28:10 UTC (rev 126501)
@@ -5,7 +5,7 @@
[test]
recipe = zc.recipe.testrunner
-eggs = zdaemon
+eggs = zdaemon [test]
[coverage-test]
recipe = zc.recipe.testrunner
Modified: zdaemon/trunk/setup.py
===================================================================
--- zdaemon/trunk/setup.py 2012-05-25 19:10:43 UTC (rev 126500)
+++ zdaemon/trunk/setup.py 2012-05-25 20:28:10 UTC (rev 126501)
@@ -29,6 +29,7 @@
entry_points=entry_points,
include_package_data = True,
install_requires=["ZConfig"],
+ extras_require=dict(test=['zope.testing']),
)
except ImportError:
from distutils.core import setup
Modified: zdaemon/trunk/src/zdaemon/tests/tests.py
===================================================================
--- zdaemon/trunk/src/zdaemon/tests/tests.py 2012-05-25 19:10:43 UTC (rev 126500)
+++ zdaemon/trunk/src/zdaemon/tests/tests.py 2012-05-25 20:28:10 UTC (rev 126501)
@@ -12,9 +12,17 @@
#
##############################################################################
-import os, re, shutil, sys, tempfile, unittest
-import ZConfig, zdaemon
-from zope.testing import doctest, renormalizing
+import doctest
+import os
+import re
+import shutil
+import subprocess
+import sys
+import tempfile
+import unittest
+import ZConfig
+import zdaemon
+from zope.testing import renormalizing
try:
import pkg_resources
@@ -112,13 +120,17 @@
f()
def system(command, input=''):
- i, o = os.popen4(command)
+ p = subprocess.Popen(
+ command, shell=True,
+ stdin=subprocess.PIPE,
+ stdout=subprocess.PIPE,
+ stderr=subprocess.STDOUT)
if input:
- i.write(input)
- i.close()
- print o.read(),
+ p.stdin.write(input)
+ p.stdin.close()
+ print p.stdout.read(),
+ p.wait()
-
def checkenv(match):
match = [a for a in match.group(1).split('\n')[:-1]
if a.split('=')[0] in ('HOME', 'LD_LIBRARY_PATH')]
More information about the Zope3-Checkins
mailing list