Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests don't seem to work #44

Open
mithro opened this issue Jul 20, 2014 · 0 comments
Open

Tests don't seem to work #44

mithro opened this issue Jul 20, 2014 · 0 comments

Comments

@mithro
Copy link

mithro commented Jul 20, 2014

I'm running Ubuntu Precise.

At the following revision

commit 6f1ee2d464860c85f11dd0c152169ca211a5f780
Author: FELD Boris <lothiraldan@gmail.com>
Date:   Sun Jun 29 13:22:00 2014 +0200

Log output below;

$ tox -e py27
GLOB sdist-make: /home/tansell/foss/slidelint/circus-web/setup.py
py27 create: /home/tansell/foss/slidelint/circus-web/.tox/py27
py27 installdeps: -r/home/tansell/foss/slidelint/circus-web/test-requirements.txt
py27 inst: /home/tansell/foss/slidelint/circus-web/.tox/dist/circus-web-0.6.zip
py27 runtests: PYTHONHASHSEED='1069897473'
py27 runtests: commands[0] | python setup.py develop
running develop
running egg_info
writing circus_web.egg-info/PKG-INFO
writing top-level names to circus_web.egg-info/top_level.txt
writing dependency_links to circus_web.egg-info/dependency_links.txt
writing entry points to circus_web.egg-info/entry_points.txt
writing requirements to circus_web.egg-info/requires.txt
reading manifest file 'circus_web.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'NOTICE'
warning: no files found matching 'LICENSE'
warning: no files found matching '*.html' under directory 'circusweb/media'
writing manifest file 'circus_web.egg-info/SOURCES.txt'
running build_ext
Creating /home/tansell/foss/slidelint/circus-web/.tox/py27/lib/python2.7/site-packages/circus-web.egg-link (link to .)
Adding circus-web 0.6 to easy-install.pth file
Installing circushttpd script to /home/tansell/foss/slidelint/circus-web/.tox/py27/bin

Installed /home/tansell/foss/slidelint/circus-web
Processing dependencies for circus-web==0.6
Searching for tomako==0.1.0
Best match: tomako 0.1.0
Adding tomako 0.1.0 to easy-install.pth file

Using /home/tansell/foss/slidelint/circus-web/.tox/py27/lib/python2.7/site-packages
Searching for TornadIO2==0.0.4
Best match: TornadIO2 0.0.4
Adding TornadIO2 0.0.4 to easy-install.pth file

Using /home/tansell/foss/slidelint/circus-web/.tox/py27/lib/python2.7/site-packages
Searching for tornado==4.0
Best match: tornado 4.0
Adding tornado 4.0 to easy-install.pth file

Using /home/tansell/foss/slidelint/circus-web/.tox/py27/lib/python2.7/site-packages
Searching for circus==0.11.1
Best match: circus 0.11.1
Adding circus 0.11.1 to easy-install.pth file
Installing circusd-stats script to /home/tansell/foss/slidelint/circus-web/.tox/py27/bin
Installing circus-plugin script to /home/tansell/foss/slidelint/circus-web/.tox/py27/bin
Installing circus-top script to /home/tansell/foss/slidelint/circus-web/.tox/py27/bin
Installing circusd script to /home/tansell/foss/slidelint/circus-web/.tox/py27/bin
Installing circusctl script to /home/tansell/foss/slidelint/circus-web/.tox/py27/bin

Using /home/tansell/foss/slidelint/circus-web/.tox/py27/lib/python2.7/site-packages
Searching for pyzmq==14.3.1
Best match: pyzmq 14.3.1
Adding pyzmq 14.3.1 to easy-install.pth file

Using /home/tansell/foss/slidelint/circus-web/.tox/py27/lib/python2.7/site-packages
Searching for anyjson==0.3.3
Best match: anyjson 0.3.3
Adding anyjson 0.3.3 to easy-install.pth file

Using /home/tansell/foss/slidelint/circus-web/.tox/py27/lib/python2.7/site-packages
Searching for MarkupSafe==0.23
Best match: MarkupSafe 0.23
Adding MarkupSafe 0.23 to easy-install.pth file

Using /home/tansell/foss/slidelint/circus-web/.tox/py27/lib/python2.7/site-packages
Searching for Mako==1.0.0
Best match: Mako 1.0.0
Adding Mako 1.0.0 to easy-install.pth file
Installing mako-render script to /home/tansell/foss/slidelint/circus-web/.tox/py27/bin

Using /home/tansell/foss/slidelint/circus-web/.tox/py27/lib/python2.7/site-packages
Searching for simplejson==3.5.3
Best match: simplejson 3.5.3
Adding simplejson 3.5.3 to easy-install.pth file

Using /home/tansell/foss/slidelint/circus-web/.tox/py27/lib/python2.7/site-packages
Searching for backports.ssl-match-hostname==3.4.0.2
Best match: backports.ssl-match-hostname 3.4.0.2
Adding backports.ssl-match-hostname 3.4.0.2 to easy-install.pth file

Using /home/tansell/foss/slidelint/circus-web/.tox/py27/lib/python2.7/site-packages
Searching for certifi==14.05.14
Best match: certifi 14.05.14
Adding certifi 14.05.14 to easy-install.pth file

Using /home/tansell/foss/slidelint/circus-web/.tox/py27/lib/python2.7/site-packages
Searching for psutil==2.1.1
Best match: psutil 2.1.1
Adding psutil 2.1.1 to easy-install.pth file

Using /home/tansell/foss/slidelint/circus-web/.tox/py27/lib/python2.7/site-packages
Searching for iowait==0.2
Best match: iowait 0.2
Adding iowait 0.2 to easy-install.pth file

Using /home/tansell/foss/slidelint/circus-web/.tox/py27/lib/python2.7/site-packages
Finished processing dependencies for circus-web==0.6
py27 runtests: commands[1] | unit2 discover -v circusweb
test_auto_discovery (tests.test_utils.TestAutoDiscovery) ... FAIL
test_disconnect (tests.test_web.TestHttpd) ... ERROR
test_index (tests.test_web.TestHttpd) ... ERROR
test_watcher_page (tests.test_web.TestHttpd) ... ERROR
test_watcher_status (tests.test_web.TestHttpd) ... ERROR

======================================================================
ERROR: test_disconnect (tests.test_web.TestHttpd)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/tansell/foss/slidelint/circus-web/.tox/py27/local/lib/python2.7/site-packages/tornado/testing.py", line 118, in __call__
    result = self.orig_method()
  File "/home/tansell/foss/slidelint/circus-web/circusweb/tests/test_web.py", line 103, in test_disconnect
    self.assertFalse('Connect' in self.app.get('/').body)
  File "/home/tansell/foss/slidelint/circus-web/.tox/py27/local/lib/python2.7/site-packages/webtest/app.py", line 759, in get
    expect_errors=expect_errors)
  File "/home/tansell/foss/slidelint/circus-web/.tox/py27/local/lib/python2.7/site-packages/webtest/app.py", line 1102, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/tansell/foss/slidelint/circus-web/.tox/py27/local/lib/python2.7/site-packages/webob/request.py", line 1316, in send
    application, catch_exc_info=True)
  File "/home/tansell/foss/slidelint/circus-web/.tox/py27/local/lib/python2.7/site-packages/webob/request.py", line 1284, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/tansell/foss/slidelint/circus-web/.tox/py27/local/lib/python2.7/site-packages/webtest/lint.py", line 179, in lint_app
    iterator = application(environ, start_response_wrapper)
TypeError: __call__() takes exactly 2 arguments (3 given)

======================================================================
ERROR: test_index (tests.test_web.TestHttpd)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/tansell/foss/slidelint/circus-web/.tox/py27/local/lib/python2.7/site-packages/tornado/testing.py", line 118, in __call__
    result = self.orig_method()
  File "/home/tansell/foss/slidelint/circus-web/circusweb/tests/test_web.py", line 41, in test_index
    res = self.app.get('/')
  File "/home/tansell/foss/slidelint/circus-web/.tox/py27/local/lib/python2.7/site-packages/webtest/app.py", line 759, in get
    expect_errors=expect_errors)
  File "/home/tansell/foss/slidelint/circus-web/.tox/py27/local/lib/python2.7/site-packages/webtest/app.py", line 1102, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/tansell/foss/slidelint/circus-web/.tox/py27/local/lib/python2.7/site-packages/webob/request.py", line 1316, in send
    application, catch_exc_info=True)
  File "/home/tansell/foss/slidelint/circus-web/.tox/py27/local/lib/python2.7/site-packages/webob/request.py", line 1284, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/tansell/foss/slidelint/circus-web/.tox/py27/local/lib/python2.7/site-packages/webtest/lint.py", line 179, in lint_app
    iterator = application(environ, start_response_wrapper)
TypeError: __call__() takes exactly 2 arguments (3 given)

======================================================================
ERROR: test_watcher_page (tests.test_web.TestHttpd)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/tansell/foss/slidelint/circus-web/.tox/py27/local/lib/python2.7/site-packages/tornado/testing.py", line 118, in __call__
    result = self.orig_method()
  File "/home/tansell/foss/slidelint/circus-web/circusweb/tests/test_web.py", line 56, in test_watcher_page
    watcher_page = self.app.get('/watchers/sleeper')
  File "/home/tansell/foss/slidelint/circus-web/.tox/py27/local/lib/python2.7/site-packages/webtest/app.py", line 759, in get
    expect_errors=expect_errors)
  File "/home/tansell/foss/slidelint/circus-web/.tox/py27/local/lib/python2.7/site-packages/webtest/app.py", line 1102, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/tansell/foss/slidelint/circus-web/.tox/py27/local/lib/python2.7/site-packages/webob/request.py", line 1316, in send
    application, catch_exc_info=True)
  File "/home/tansell/foss/slidelint/circus-web/.tox/py27/local/lib/python2.7/site-packages/webob/request.py", line 1284, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/tansell/foss/slidelint/circus-web/.tox/py27/local/lib/python2.7/site-packages/webtest/lint.py", line 179, in lint_app
    iterator = application(environ, start_response_wrapper)
TypeError: __call__() takes exactly 2 arguments (3 given)

======================================================================
ERROR: test_watcher_status (tests.test_web.TestHttpd)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/tansell/foss/slidelint/circus-web/.tox/py27/local/lib/python2.7/site-packages/tornado/testing.py", line 118, in __call__
    result = self.orig_method()
  File "/home/tansell/foss/slidelint/circus-web/circusweb/tests/test_web.py", line 87, in test_watcher_status
    watcher_page = self.app.get('/watchers/sleeper')
  File "/home/tansell/foss/slidelint/circus-web/.tox/py27/local/lib/python2.7/site-packages/webtest/app.py", line 759, in get
    expect_errors=expect_errors)
  File "/home/tansell/foss/slidelint/circus-web/.tox/py27/local/lib/python2.7/site-packages/webtest/app.py", line 1102, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/tansell/foss/slidelint/circus-web/.tox/py27/local/lib/python2.7/site-packages/webob/request.py", line 1316, in send
    application, catch_exc_info=True)
  File "/home/tansell/foss/slidelint/circus-web/.tox/py27/local/lib/python2.7/site-packages/webob/request.py", line 1284, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/tansell/foss/slidelint/circus-web/.tox/py27/local/lib/python2.7/site-packages/webtest/lint.py", line 179, in lint_app
    iterator = application(environ, start_response_wrapper)
TypeError: __call__() takes exactly 2 arguments (3 given)

======================================================================
FAIL: test_auto_discovery (tests.test_utils.TestAutoDiscovery)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/tansell/foss/slidelint/circus-web/.tox/py27/local/lib/python2.7/site-packages/tornado/testing.py", line 118, in __call__
    result = self.orig_method()
  File "/home/tansell/foss/slidelint/circus-web/circusweb/tests/test_utils.py", line 25, in test_auto_discovery
    self.retry_timeout(oracle, 10)
  File "/home/tansell/foss/slidelint/circus-web/circusweb/tests/test_utils.py", line 52, in retry_timeout
    self.wait(test)
  File "/home/tansell/foss/slidelint/circus-web/.tox/py27/local/lib/python2.7/site-packages/tornado/testing.py", line 312, in wait
    self.__rethrow()
  File "/home/tansell/foss/slidelint/circus-web/.tox/py27/local/lib/python2.7/site-packages/tornado/testing.py", line 248, in __rethrow
    raise_exc_info(failure)
  File "/home/tansell/foss/slidelint/circus-web/.tox/py27/local/lib/python2.7/site-packages/tornado/testing.py", line 296, in timeout_func
    timeout)
AssertionError: Async operation timed out after 30.0 seconds

----------------------------------------------------------------------
Ran 5 tests in 30.428s

FAILED (failures=1, errors=4)
ERROR: InvocationError: '/home/tansell/foss/slidelint/circus-web/.tox/py27/bin/unit2 discover -v circusweb'
___________________________________________________________________________________ summary ____________________________________________________________________________________
ERROR:   py27: commands failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant