* CPV: dev-python/python-daemon-1.6 * REPO: gentoo * USE: amd64 elibc_glibc kernel_linux multilib test userland_GNU >>> Unpacking source... >>> Unpacking python-daemon-1.6.tar.gz to /var/tmp/portage/dev-python/python-daemon-1.6/work >>> Source unpacked in /var/tmp/portage/dev-python/python-daemon-1.6/work >>> Preparing source in /var/tmp/portage/dev-python/python-daemon-1.6/work/python-daemon-1.6 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-python/python-daemon-1.6/work/python-daemon-1.6 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-python/python-daemon-1.6/work/python-daemon-1.6 ... * Building of dev-python/python-daemon-1.6 with CPython 2.6... python2.6 setup.py build -b build-2.6  running build running build_py creating build-2.6 creating build-2.6/lib creating build-2.6/lib/daemon copying daemon/pidfile.py -> build-2.6/lib/daemon copying daemon/__init__.py -> build-2.6/lib/daemon copying daemon/daemon.py -> build-2.6/lib/daemon copying daemon/runner.py -> build-2.6/lib/daemon creating build-2.6/lib/daemon/version copying daemon/version/__init__.py -> build-2.6/lib/daemon/version copying daemon/version/version_info.py -> build-2.6/lib/daemon/version warning: build_py: byte-compiling is disabled, skipping. * Building of dev-python/python-daemon-1.6 with CPython 2.7... python2.7 setup.py build -b build-2.7  running build running build_py creating build-2.7 creating build-2.7/lib creating build-2.7/lib/daemon copying daemon/pidfile.py -> build-2.7/lib/daemon copying daemon/__init__.py -> build-2.7/lib/daemon copying daemon/daemon.py -> build-2.7/lib/daemon copying daemon/runner.py -> build-2.7/lib/daemon creating build-2.7/lib/daemon/version copying daemon/version/__init__.py -> build-2.7/lib/daemon/version copying daemon/version/version_info.py -> build-2.7/lib/daemon/version warning: build_py: byte-compiling is disabled, skipping. >>> Source compiled. * Testing of dev-python/python-daemon-1.6 with CPython 2.6... PYTHONPATH=build-2.6/lib python2.6 setup.py build -b build-2.6 test  running build running build_py warning: build_py: byte-compiling is disabled, skipping. running test running egg_info writing requirements to python_daemon.egg-info/requires.txt writing python_daemon.egg-info/PKG-INFO writing top-level names to python_daemon.egg-info/top_level.txt writing dependency_links to python_daemon.egg-info/dependency_links.txt reading manifest file 'python_daemon.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'python_daemon.egg-info/SOURCES.txt' running build_ext Should create a TimeoutPIDLockFile with specified params. ... ok DaemonContext component should have new PID lock file. ... ok DaemonContext component should have specified stderr file. ... ok DaemonContext component should have specified stdin file. ... ok DaemonContext component should have specified stdout file. ... ok DaemonContext component should open stderr file for append. ... ok DaemonContext component should open stderr file unbuffered. ... ok DaemonContext component should open stdin file for read. ... ok DaemonContext component should open stdout file for append. ... ok Should raise ValueError when PID file path not absolute. ... ok Should raise ValueError when PID file path not a string. ... ok Should have new PID lock file as `pidfile` attribute. ... ok Should have specified application object. ... ok New instance of DaemonRunner should be created. ... ok Should parse commandline arguments. ... ok Should set ‘pidfile’ to ‘None’ when ‘pidfile_path’ is ‘None’. ... ok Should emit a usage message and exit if action is unknown. ... ok Should request stop, then start. ... ok Should request breaking lock if PID file process is not running. ... ok Should emit start message to stderr. ... ok Should raise error if PID file is locked. ... ok Should request the application to run. ... ok Should request the daemon context to open. ... ok Should break lock if PID file is stale. ... ok Should raise error if cannot send signal to daemon process. ... ok Should raise error if PID file is not locked. ... ok Should send SIGTERM to the daemon process. ... ok Should emit a usage message and exit if too few arguments. ... ok Should emit a usage message and exit if unknown action. ... ok Should set action from first commandline argument. ... ok Should parse sys.argv by default. ... ok Should emit a conventional usage message. ... ok Should raise SystemExit exception. ... ok Exception instance should be created. ... ok Exception instances should match expected types. ... ok Should call the superclass ‘acquire’ with specified timeout. ... ok Should call superclass ‘acquire’ with stored timeout by default. ... ok Should call the superclass ‘__init__’. ... ok Should have specified ‘acquire_timeout’ value. ... ok Should inherit from PIDLockFile. ... ok Should have expected signature for ‘__init__’. ... ok Should have default umask option. ... ok Should have default working_directory option. ... ok Should have detach_process option derived from environment. ... ok Should have gid option derived from process. ... ok Should have signal_map option derived from system. ... ok Should have uid option derived from process. ... ok Should have specified chroot_directory option. ... ok Should have specified umask option. ... ok Should have specified detach_process option. ... ok Should have specified files_preserve option. ... ok Should have specified gid option. ... ok Should have the specified pidfile. ... ok Should have specified signal_map option. ... ok Should have specified stderr option. ... ok Should have specified stdin option. ... ok Should have specified stdout option. ... ok Should have specified uid option. ... ok Should have specified working_directory option. ... ok New instance of DaemonContext should be created. ... ok Initialiser should not require any arguments. ... ok Should exit the PID file context manager. ... ok Should return immediately if is_open property is false. ... ok Should return None. ... ok Should set the `is_open` property to False. ... ok Should open the DaemonContext. ... ok Should return DaemonContext instance. ... ok Should close the DaemonContext. ... ok Should return None, indicating exception was not handled. ... ok Should omit any stream without a file descriptor. ... ok Should return empty set if no file options. ... ok Should return expected set of file descriptors. ... ok Should return only stream redirects if no files_preserve. ... ok Initial value of is_open should be False. ... ok Writing to is_open should fail. ... ok Should raise AttributeError for unknown method name. ... ok Should return SIG_IGN when None handler specified. ... ok Should return method of DaemonContext when name specified. ... ok Should return same object for any other object. ... ok Should return items as constructed via make_signal_handler. ... ok Should change file creation mask to `umask` option. ... ok Should change current directory to `working_directory` option. ... ok Should change process UID and GID to `uid` and `gid` options. ... ok Should change root directory to `chroot_directory` option. ... ok Should close all open files, excluding `files_preserve`. ... ok Should request detach of process context. ... ok Should enter the PID file context manager. ... ok Should omit changing root directory if no `chroot_directory`. ... ok Should omit preventing core dumps if `prevent_core` is false. ... ok Should omit detach of process context if not required. ... ok Should perform daemonisation steps in expected sequence. ... ok Should request prevention of core dumps. ... ok Should request redirection of standard stream files. ... ok Should register the `close` method for atexit processing. ... ok Should return immediately if is_open property is true. ... ok Should set the `is_open` property to True. ... ok Should set signal handlers according to `signal_map`. ... ok Should raise exception with a message containing signal number. ... ok Should raise SystemExit. ... ok Exception instance should be created. ... ok Exception instances should match expected types. ... ok Should change working directory to specified directory. ... ok Should raise a DaemonError with original message. ... ok Should raise a DaemonError on receiving an OSError from umask. ... ok Should change process GID and UID in correct order. ... ok Should change process GID to specified value. ... ok Should change process UID to specified value. ... ok Should raise a DaemonError with original message. ... ok Should raise a DaemonError on receiving an OSError from setgid. ... ok Should raise a DaemonError on receiving an OSError from setuid. ... ok Should change root directory to specified directory. ... ok Should change working directory to specified directory. ... ok Should raise a DaemonError with original message. ... ok Should raise a DaemonError on receiving an OSError from chdir. ... ok Should raise a DaemonError on receiving an OSError from chroot. ... ok Should change working directory to specified directory. ... ok Should raise a DaemonError with original message. ... ok Should raise a DaemonError on receiving and OSError. ... ok Should request close of all open files but those excluded. ... ok Should request close of all open files. ... ok Should ignore OSError EBADF when closing. ... ok Should raise DaemonError if an OSError occurs when closing. ... ok Should request close of file descriptor. ... ok Child should fork, then continue if child. ... ok Child should fork, then exit if parent. ... ok Child should start new process group. ... ok Error on first fork should raise DaemonProcessDetachError. ... ok Parent process should exit. ... ok Error on second fork should cause report to stderr. ... ok Should return module MAXFD if hard limit is infinity. ... ok Should return process hard limit on number of files. ... ok Should return False if current process started by init. ... ok Should return False under normal circumstances. ... ok Should return False if current process started by superserver. ... ok Should return False under normal circumstances. ... ok Should return True if parent process is `init`. ... ok Should return False under normal circumstances. ... ok Should return True if `stdin` is a socket. ... ok Should return False under normal circumstances. ... ok Should return True if `stdin` is a socket and raises error. ... ok Should return True if `stdin` is a socket. ... ok Should return map per default. ... ok Should return map with only signals in the `signal` module. ... ok Should be an integer. ... ok Should be a positive number. ... ok Should be reasonably high for default open files limit. ... ok Should raise DaemonError if no RLIMIT_CORE resource. ... ok Should set the RLIMIT_CORE resource to zero. ... ok Should by default duplicate the null file to the system stream. ... ok Should duplicate file descriptor from target to system stream. ... ok Should register specified function for atexit processing. ... ok Should set signal handler for each item in map. ... ok ---------------------------------------------------------------------- Ran 152 tests in 4.073s OK * Testing of dev-python/python-daemon-1.6 with CPython 2.7... PYTHONPATH=build-2.7/lib python2.7 setup.py build -b build-2.7 test  running build running build_py warning: build_py: byte-compiling is disabled, skipping. running test running egg_info writing requirements to python_daemon.egg-info/requires.txt writing python_daemon.egg-info/PKG-INFO writing top-level names to python_daemon.egg-info/top_level.txt writing dependency_links to python_daemon.egg-info/dependency_links.txt reading manifest file 'python_daemon.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'python_daemon.egg-info/SOURCES.txt' running build_ext test_creates_lock_with_specified_parameters (test_runner.DaemonRunner_TestCase) Should create a TimeoutPIDLockFile with specified params. ... Traceback (most recent call last): File "setup.py", line 62, in u"Topic :: Software Development :: Libraries :: Python Modules", File "/usr/lib64/python2.7/distutils/core.py", line 152, in setup dist.run_commands() File "/usr/lib64/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/usr/lib64/python2.7/site-packages/setuptools/command/test.py", line 137, in run self.with_project_on_sys_path(self.run_tests) File "/usr/lib64/python2.7/site-packages/setuptools/command/test.py", line 117, in with_project_on_sys_path func() File "/usr/lib64/python2.7/site-packages/setuptools/command/test.py", line 146, in run_tests testLoader = loader_class() File "/usr/lib64/python2.7/unittest/main.py", line 95, in __init__ self.runTests() File "/usr/lib64/python2.7/unittest/main.py", line 229, in runTests self.result = testRunner.run(self.test) File "/usr/lib64/python2.7/unittest/runner.py", line 151, in run test(result) File "/usr/lib64/python2.7/unittest/suite.py", line 65, in __call__ return self.run(*args, **kwds) File "/usr/lib64/python2.7/unittest/suite.py", line 85, in run self._wrapped_run(result) File "/usr/lib64/python2.7/unittest/suite.py", line 115, in _wrapped_run test._wrapped_run(result, debug) File "/usr/lib64/python2.7/unittest/suite.py", line 115, in _wrapped_run test._wrapped_run(result, debug) File "/usr/lib64/python2.7/unittest/suite.py", line 115, in _wrapped_run test._wrapped_run(result, debug) File "/usr/lib64/python2.7/unittest/suite.py", line 117, in _wrapped_run test(result) File "/usr/lib64/python2.7/unittest/case.py", line 376, in __call__ return self.run(*args, **kwds) File "/usr/lib64/python2.7/unittest/case.py", line 315, in run result.addError(self, sys.exc_info()) File "/usr/lib64/python2.7/unittest/runner.py", line 66, in addError super(TextTestResult, self).addError(test, err) File "/usr/lib64/python2.7/unittest/result.py", line 19, in inner return method(self, *args, **kw) File "/usr/lib64/python2.7/unittest/result.py", line 109, in addError self.errors.append((test, self._exc_info_to_string(err, test))) File "/usr/lib64/python2.7/unittest/result.py", line 157, in _exc_info_to_string msgLines = traceback.format_exception(exctype, value, tb) File "/usr/lib64/python2.7/traceback.py", line 141, in format_exception list = list + format_tb(tb, limit) File "/usr/lib64/python2.7/traceback.py", line 76, in format_tb return format_list(extract_tb(tb, limit)) File "/usr/lib64/python2.7/traceback.py", line 101, in extract_tb line = linecache.getline(filename, lineno, f.f_globals) File "/usr/lib64/python2.7/linecache.py", line 14, in getline lines = getlines(filename, module_globals) File "/usr/lib64/python2.7/linecache.py", line 40, in getlines return updatecache(filename, module_globals) File "/usr/lib64/python2.7/linecache.py", line 127, in updatecache with open(fullname, 'rU') as fp: AttributeError: __exit__ * ERROR: dev-python/python-daemon-1.6 failed: * Testing failed with CPython 2.7 in distutils_testing() function * * Call stack: * ebuild.sh, line 47: Called src_test * environment, line 3445: Called distutils_src_test * environment, line 1213: Called python_execute_function 'distutils_testing' * environment, line 2206: Called die * The specific snippet of code: * die "${failure_message}"; * * If you need support, post the output of 'emerge --info =dev-python/python-daemon-1.6', * the complete build log and the output of 'emerge -pqv =dev-python/python-daemon-1.6'. * The complete build log is located at '/var/log/portage/build/dev-python/python-daemon-1.6:20100706-195100.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-python/python-daemon-1.6/temp/environment'. * S: '/var/tmp/portage/dev-python/python-daemon-1.6/work/python-daemon-1.6'