tornadio2 icon indicating copy to clipboard operation
tornadio2 copied to clipboard

Include tests in tarball and report failing testsuite

Open tomspur opened this issue 10 years ago • 0 comments

Is tornadio2 compatible with tornado > 3? Over here I just got these failures:

======================================================================
ERROR: tests.gen_test.test
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "./tornadio2/tests/gen_test.py", line 103, in test
    dummy.test('test')
  File "./tornadio2/tornadio2/gen.py", line 113, in wrapper
    run(args, kwargs)
  File "./tornadio2/tornadio2/gen.py", line 84, in run
    data.runner = SyncRunner(gen, finished)
  File "./tornadio2/tornadio2/gen.py", line 45, in __init__
    super(SyncRunner, self).__init__(gen)
TypeError: __init__() takes exactly 3 arguments (2 given)

======================================================================
ERROR: tests.gen_test.test_async
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "./tornadio2/tests/gen_test.py", line 112, in test_async
    dummy.test('test')
  File "./tornadio2/tornadio2/gen.py", line 113, in wrapper
    run(args, kwargs)
  File "./tornadio2/tornadio2/gen.py", line 84, in run
    data.runner = SyncRunner(gen, finished)
  File "./tornadio2/tornadio2/gen.py", line 45, in __init__
    super(SyncRunner, self).__init__(gen)
TypeError: __init__() takes exactly 3 arguments (2 given)

======================================================================
ERROR: tests.gen_test.test_sync_queue
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "./tornadio2/tests/gen_test.py", line 123, in test_sync_queue
    dummy.test('1')
  File "./tornadio2/tornadio2/gen.py", line 113, in wrapper
    run(args, kwargs)
  File "./tornadio2/tornadio2/gen.py", line 84, in run
    data.runner = SyncRunner(gen, finished)
  File "./tornadio2/tornadio2/gen.py", line 45, in __init__
    super(SyncRunner, self).__init__(gen)
TypeError: __init__() takes exactly 3 arguments (2 given)

======================================================================
ERROR: tests.gen_test.test_sync_queue_oor
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "./tornadio2/tests/gen_test.py", line 136, in test_sync_queue_oor
    dummy.test('1')
  File "./tornadio2/tornadio2/gen.py", line 113, in wrapper
    run(args, kwargs)
  File "./tornadio2/tornadio2/gen.py", line 84, in run
    data.runner = SyncRunner(gen, finished)
  File "./tornadio2/tornadio2/gen.py", line 45, in __init__
    super(SyncRunner, self).__init__(gen)
TypeError: __init__() takes exactly 3 arguments (2 given)

======================================================================
FAIL: tests.session_test.test_endpoint
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "./tornadio2/tests/session_test.py", line 247, in test_endpoint
    eq_(conn_test.request.arguments, dict(a=['123'], b=['456']))
AssertionError: {} != {'a': ['123'], 'b': ['456']}
-------------------- >> begin captured logging << --------------------
tornadio2.session: DEBUG: <<< 1::
tornadio2.session: DEBUG: >>> 1::/test?a=123&b=456
tornadio2.session: DEBUG: <<< 1::/test
--------------------- >> end captured logging << ---------------------

----------------------------------------------------------------------
Ran 17 tests in 0.063s

FAILED (errors=4, failures=1)

tomspur avatar Apr 25 '14 13:04 tomspur