Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ ls tests/*.py
- tests/attachment.py tests/core.py tests/hooks.py tests/model.py tests/resource.py tests/upgrade.py tests/wikisyntax.py
- tests/config.py tests/env.py tests/__init__.py tests/perm.py tests/upgrade_postgres.py tests/web_ui.py
- $ python -V
- Python 2.7.4
- $ PYTHONPATH=. python -m tests.attachment
- tests/__init__.py:29: UserWarning: Module tests was already imported from tests/__init__.pyc, but /usr/lib/python2.7/dist-packages is being added to sys.path
- from pkg_resources import resource_exists, resource_filename, \
- ..............
- ----------------------------------------------------------------------
- Ran 14 tests in 0.527s
- OK
- $ PYTHONPATH=. python -m tests.config
- tests/__init__.py:29: UserWarning: Module tests was already imported from tests/__init__.pyc, but /usr/lib/python2.7/dist-packages is being added to sys.path
- from pkg_resources import resource_exists, resource_filename, \
- ..............................
- ----------------------------------------------------------------------
- Ran 30 tests in 4.057s
- OK
- $ PYTHONPATH=. python -m tests.core
- tests/__init__.py:29: UserWarning: Module tests was already imported from tests/__init__.pyc, but /usr/lib/python2.7/dist-packages is being added to sys.path
- from pkg_resources import resource_exists, resource_filename, \
- ...
- ----------------------------------------------------------------------
- Ran 3 tests in 0.000s
- OK
- $ PYTHONPATH=. python -m tests.env
- tests/__init__.py:29: UserWarning: Module tests was already imported from tests/__init__.pyc, but /usr/lib/python2.7/dist-packages is being added to sys.path
- from pkg_resources import resource_exists, resource_filename, \
- ......................
- ----------------------------------------------------------------------
- Ran 22 tests in 30.939s
- OK
- $ PYTHONPATH=. python -m tests.hooks
- tests/__init__.py:29: UserWarning: Module tests was already imported from tests/__init__.pyc, but /usr/lib/python2.7/dist-packages is being added to sys.path
- from pkg_resources import resource_exists, resource_filename, \
- .....
- ----------------------------------------------------------------------
- Ran 5 tests in 0.001s
- OK
- $ PYTHONPATH=. python -m tests.model
- tests/__init__.py:29: UserWarning: Module tests was already imported from tests/__init__.pyc, but /usr/lib/python2.7/dist-packages is being added to sys.path
- from pkg_resources import resource_exists, resource_filename, \
- ...............
- ----------------------------------------------------------------------
- Ran 15 tests in 0.352s
- OK
- $ PYTHONPATH=. python -m tests.perm
- tests/__init__.py:29: UserWarning: Module tests was already imported from tests/__init__.pyc, but /usr/lib/python2.7/dist-packages is being added to sys.path
- from pkg_resources import resource_exists, resource_filename, \
- .......................................................
- ----------------------------------------------------------------------
- Ran 55 tests in 3.627s
- OK
- $ PYTHONPATH=. python -m tests.resource
- tests/__init__.py:29: UserWarning: Module tests was already imported from tests/__init__.pyc, but /usr/lib/python2.7/dist-packages is being added to sys.path
- from pkg_resources import resource_exists, resource_filename, \
- ...........
- ----------------------------------------------------------------------
- Ran 11 tests in 0.779s
- OK
- $ PYTHONPATH=. python -m tests.upgrade &> /tmp/trac-tests.txt
- tests/__init__.py:29: UserWarning: Module tests was already imported from tests/__init__.pyc, but /usr/lib/python2.7/dist-packages is being added to sys.path
- from pkg_resources import resource_exists, resource_filename, \
- EEE...EE..E......E....
- ======================================================================
- ERROR: test_batch_ticket_insert_after_upgrade (__main__.EnvironmentUpgradeTestCase)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/path/to/bh/bloodhound_multiproduct/tests/upgrade.py", line 405, in test_batch_ticket_insert_after_upgrade
- db("""INSERT INTO ticket (summary) SELECT summary FROM tmp""")
- File "multiproduct/dbcursor.py", line 122, in execute
- return self.connection.execute(query, params=params)
- File "/path/to/bh/trac/trac/db/util.py", line 121, in execute
- cursor.execute(query, params)
- File "multiproduct/dbcursor.py", line 87, in execute
- return super(BloodhoundIterableCursor, self).execute(translate_sql(self.env, sql), args=args)
- File "/path/to/bh/trac/trac/db/util.py", line 66, in execute
- return self.cursor.execute(sql)
- File "/path/to/bh/trac/trac/db/sqlite_backend.py", line 78, in execute
- result = PyFormatCursor.execute(self, *args)
- File "/path/to/bh/trac/trac/db/sqlite_backend.py", line 56, in execute
- args or [])
- File "/path/to/bh/trac/trac/db/sqlite_backend.py", line 48, in _rollback_on_error
- return function(self, *args, **kwargs)
- OperationalError: 2 values for 3 columns
- ======================================================================
- ERROR: test_can_insert_tickets_after_upgrade (__main__.EnvironmentUpgradeTestCase)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/path/to/bh/bloodhound_multiproduct/tests/upgrade.py", line 374, in test_can_insert_tickets_after_upgrade
- ticket = Ticket(self.env)
- File "/path/to/bh/trac/trac/ticket/model.py", line 71, in __init__
- self.fields = TicketSystem(self.env).get_ticket_fields()
- File "/path/to/bh/trac/trac/ticket/api.py", line 310, in get_ticket_fields
- fields = copy.deepcopy(self.fields)
- File "/usr/lib/python2.7/copy.py", line 163, in deepcopy
- y = copier(x, memo)
- File "/usr/lib/python2.7/copy.py", line 230, in _deepcopy_list
- y.append(deepcopy(a, memo))
- File "/usr/lib/python2.7/copy.py", line 163, in deepcopy
- y = copier(x, memo)
- File "/usr/lib/python2.7/copy.py", line 257, in _deepcopy_dict
- y[deepcopy(key, memo)] = deepcopy(value, memo)
- File "/usr/lib/python2.7/copy.py", line 190, in deepcopy
- y = _reconstruct(x, rv, 1, memo)
- File "/usr/lib/python2.7/copy.py", line 346, in _reconstruct
- setattr(y, key, value)
- File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 255, in __setattr__
- setattr(self.value, name, value)
- File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 182, in value
- if self._value is None:
- File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 252, in __getattr__
- return getattr(self.value, name)
- File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 182, in value
- if self._value is None:
- [...]
- File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 252, in __getattr__
- return getattr(self.value, name)
- File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 182, in value
- if self._value is None:
- File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 252, in __getattr__
- return getattr(self.value, name)
- RuntimeError: maximum recursion depth exceeded
- ======================================================================
- ERROR: test_can_insert_tickets_with_same_id_to_different_products (__main__.EnvironmentUpgradeTestCase)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/path/to/bh/bloodhound_multiproduct/tests/upgrade.py", line 385, in test_can_insert_tickets_with_same_id_to_different_products
- t1 = Ticket(self.env, 1)
- File "/path/to/bh/trac/trac/ticket/model.py", line 71, in __init__
- self.fields = TicketSystem(self.env).get_ticket_fields()
- File "/path/to/bh/trac/trac/ticket/api.py", line 310, in get_ticket_fields
- fields = copy.deepcopy(self.fields)
- File "/usr/lib/python2.7/copy.py", line 163, in deepcopy
- y = copier(x, memo)
- File "/usr/lib/python2.7/copy.py", line 230, in _deepcopy_list
- y.append(deepcopy(a, memo))
- File "/usr/lib/python2.7/copy.py", line 163, in deepcopy
- y = copier(x, memo)
- File "/usr/lib/python2.7/copy.py", line 257, in _deepcopy_dict
- y[deepcopy(key, memo)] = deepcopy(value, memo)
- File "/usr/lib/python2.7/copy.py", line 190, in deepcopy
- y = _reconstruct(x, rv, 1, memo)
- File "/usr/lib/python2.7/copy.py", line 346, in _reconstruct
- setattr(y, key, value)
- File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 255, in __setattr__
- setattr(self.value, name, value)
- File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 182, in value
- if self._value is None:
- File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 252, in __getattr__
- return getattr(self.value, name)
- File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 182, in value
- if self._value is None:
- [...]
- File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 252, in __getattr__
- return getattr(self.value, name)
- RuntimeError: maximum recursion depth exceeded
- ======================================================================
- ERROR: test_can_upgrade_multi_product_from_v1 (__main__.EnvironmentUpgradeTestCase)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/path/to/bh/bloodhound_multiproduct/tests/upgrade.py", line 247, in test_can_upgrade_multi_product_from_v1
- Ticket(self.env, 1)
- File "/path/to/bh/trac/trac/ticket/model.py", line 71, in __init__
- self.fields = TicketSystem(self.env).get_ticket_fields()
- File "/path/to/bh/trac/trac/ticket/api.py", line 310, in get_ticket_fields
- fields = copy.deepcopy(self.fields)
- File "/usr/lib/python2.7/copy.py", line 163, in deepcopy
- y = copier(x, memo)
- File "/usr/lib/python2.7/copy.py", line 230, in _deepcopy_list
- y.append(deepcopy(a, memo))
- File "/usr/lib/python2.7/copy.py", line 163, in deepcopy
- y = copier(x, memo)
- File "/usr/lib/python2.7/copy.py", line 257, in _deepcopy_dict
- y[deepcopy(key, memo)] = deepcopy(value, memo)
- File "/usr/lib/python2.7/copy.py", line 190, in deepcopy
- y = _reconstruct(x, rv, 1, memo)
- File "/usr/lib/python2.7/copy.py", line 346, in _reconstruct
- setattr(y, key, value)
- File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 255, in __setattr__
- setattr(self.value, name, value)
- File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 182, in value
- if self._value is None:
- File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 252, in __getattr__
- return getattr(self.value, name)
- File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 182, in value
- if self._value is None:
- [...]
- File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 252, in __getattr__
- return getattr(self.value, name)
- RuntimeError: maximum recursion depth exceeded
- ======================================================================
- ERROR: test_can_upgrade_multi_product_from_v2 (__main__.EnvironmentUpgradeTestCase)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/path/to/bh/bloodhound_multiproduct/tests/upgrade.py", line 268, in test_can_upgrade_multi_product_from_v2
- Ticket(self.env, 1)
- File "/path/to/bh/trac/trac/ticket/model.py", line 71, in __init__
- self.fields = TicketSystem(self.env).get_ticket_fields()
- File "/path/to/bh/trac/trac/ticket/api.py", line 310, in get_ticket_fields
- fields = copy.deepcopy(self.fields)
- File "/usr/lib/python2.7/copy.py", line 163, in deepcopy
- y = copier(x, memo)
- File "/usr/lib/python2.7/copy.py", line 230, in _deepcopy_list
- y.append(deepcopy(a, memo))
- File "/usr/lib/python2.7/copy.py", line 163, in deepcopy
- y = copier(x, memo)
- File "/usr/lib/python2.7/copy.py", line 257, in _deepcopy_dict
- y[deepcopy(key, memo)] = deepcopy(value, memo)
- File "/usr/lib/python2.7/copy.py", line 190, in deepcopy
- y = _reconstruct(x, rv, 1, memo)
- File "/usr/lib/python2.7/copy.py", line 346, in _reconstruct
- setattr(y, key, value)
- File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 255, in __setattr__
- setattr(self.value, name, value)
- File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 182, in value
- if self._value is None:
- File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 252, in __getattr__
- return getattr(self.value, name)
- File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 182, in value
- if self._value is None:
- [...]
- File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 252, in __getattr__
- return getattr(self.value, name)
- RuntimeError: maximum recursion depth exceeded
- ======================================================================
- ERROR: test_migration_to_multiproduct_preserves_ticket_ids (__main__.EnvironmentUpgradeTestCase)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/path/to/bh/bloodhound_multiproduct/tests/upgrade.py", line 361, in test_migration_to_multiproduct_preserves_ticket_ids
- ticket = Ticket(self.env, ticket_id)
- File "/path/to/bh/trac/trac/ticket/model.py", line 71, in __init__
- self.fields = TicketSystem(self.env).get_ticket_fields()
- File "/path/to/bh/trac/trac/ticket/api.py", line 310, in get_ticket_fields
- fields = copy.deepcopy(self.fields)
- File "/usr/lib/python2.7/copy.py", line 163, in deepcopy
- y = copier(x, memo)
- File "/usr/lib/python2.7/copy.py", line 230, in _deepcopy_list
- y.append(deepcopy(a, memo))
- File "/usr/lib/python2.7/copy.py", line 163, in deepcopy
- y = copier(x, memo)
- File "/usr/lib/python2.7/copy.py", line 257, in _deepcopy_dict
- y[deepcopy(key, memo)] = deepcopy(value, memo)
- File "/usr/lib/python2.7/copy.py", line 190, in deepcopy
- y = _reconstruct(x, rv, 1, memo)
- File "/usr/lib/python2.7/copy.py", line 346, in _reconstruct
- setattr(y, key, value)
- File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 255, in __setattr__
- setattr(self.value, name, value)
- File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 182, in value
- if self._value is None:
- File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 252, in __getattr__
- return getattr(self.value, name)
- File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 182, in value
- if self._value is None:
- [...]
- File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 252, in __getattr__
- return getattr(self.value, name)
- RuntimeError: maximum recursion depth exceeded
- ======================================================================
- ERROR: test_upgrade_moves_tickets_and_related_objects_to_default_prod (__main__.EnvironmentUpgradeTestCase)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/path/to/bh/bloodhound_multiproduct/tests/upgrade.py", line 107, in test_upgrade_moves_tickets_and_related_objects_to_default_prod
- ticket = Ticket(self.env, 1)
- File "/path/to/bh/trac/trac/ticket/model.py", line 71, in __init__
- self.fields = TicketSystem(self.env).get_ticket_fields()
- File "/path/to/bh/trac/trac/ticket/api.py", line 310, in get_ticket_fields
- fields = copy.deepcopy(self.fields)
- File "/usr/lib/python2.7/copy.py", line 163, in deepcopy
- y = copier(x, memo)
- File "/usr/lib/python2.7/copy.py", line 230, in _deepcopy_list
- y.append(deepcopy(a, memo))
- File "/usr/lib/python2.7/copy.py", line 163, in deepcopy
- y = copier(x, memo)
- File "/usr/lib/python2.7/copy.py", line 257, in _deepcopy_dict
- y[deepcopy(key, memo)] = deepcopy(value, memo)
- File "/usr/lib/python2.7/copy.py", line 190, in deepcopy
- y = _reconstruct(x, rv, 1, memo)
- File "/usr/lib/python2.7/copy.py", line 346, in _reconstruct
- setattr(y, key, value)
- File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 255, in __setattr__
- setattr(self.value, name, value)
- File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 182, in value
- if self._value is None:
- File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 252, in __getattr__
- return getattr(self.value, name)
- File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 182, in value
- if self._value is None:
- [...]
- File "/path/to/venv/local/lib/python2.7/site-packages/babel/support.py", line 252, in __getattr__
- return getattr(self.value, name)
- RuntimeError: maximum recursion depth exceeded
- ----------------------------------------------------------------------
- Ran 22 tests in 484.414s
- FAILED (errors=7)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement