Exception during _setup(): ValueError('In File: migrate/tests/versioning/test_schema.py\nTestCase.setUp was already called. Do not explicitly call setUp from your tests. In your own setUp, use super to call the base setUp.'

Bug #1448930 reported by Thomas Goirand
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sqlalchemy-migrate
New
Undecided
Unassigned

Bug Description

During a build in Debian, I have the below unit test errors:

FAIL: migrate.tests.versioning.test_schema.TestControlledSchema.test_changeset
migrate.tests.versioning.test_schema.TestControlledSchema.test_changeset
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "<string>", line 2, in test_changeset
  File "migrate/tests/fixture/database.py", line 109, in dec
    six.reraise(*fail)
  File "migrate/tests/fixture/database.py", line 93, in dec
    raise RuntimeError('Exception during _setup(): %r' % e)
RuntimeError: Exception during _setup(): ValueError('In File: migrate/tests/versioning/test_schema.py\nTestCase.setUp was already called. Do not explicitly call setUp from your tests. In your own setUp, use super to call the base setUp.',)

======================================================================
FAIL: migrate.tests.versioning.test_schema.TestControlledSchema.test_compare_model_to_db
migrate.tests.versioning.test_schema.TestControlledSchema.test_compare_model_to_db
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "<string>", line 2, in test_compare_model_to_db
  File "migrate/tests/fixture/database.py", line 109, in dec
    six.reraise(*fail)
  File "migrate/tests/fixture/database.py", line 93, in dec
    raise RuntimeError('Exception during _setup(): %r' % e)
RuntimeError: Exception during _setup(): ValueError('In File: migrate/tests/versioning/test_schema.py\nTestCase.setUp was already called. Do not explicitly call setUp from your tests. In your own setUp, use super to call the base setUp.',)

======================================================================
FAIL: migrate.tests.versioning.test_schema.TestControlledSchema.test_create_model
migrate.tests.versioning.test_schema.TestControlledSchema.test_create_model
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "<string>", line 2, in test_create_model
  File "migrate/tests/fixture/database.py", line 109, in dec
    six.reraise(*fail)
  File "migrate/tests/fixture/database.py", line 93, in dec
    raise RuntimeError('Exception during _setup(): %r' % e)
RuntimeError: Exception during _setup(): ValueError('In File: migrate/tests/versioning/test_schema.py\nTestCase.setUp was already called. Do not explicitly call setUp from your tests. In your own setUp, use super to call the base setUp.',)

======================================================================
FAIL: migrate.tests.versioning.test_schema.TestControlledSchema.test_update_db_from_model
migrate.tests.versioning.test_schema.TestControlledSchema.test_update_db_from_model
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "<string>", line 2, in test_update_db_from_model
  File "migrate/tests/fixture/database.py", line 109, in dec
    six.reraise(*fail)
  File "migrate/tests/fixture/database.py", line 93, in dec
    raise RuntimeError('Exception during _setup(): %r' % e)
RuntimeError: Exception during _setup(): ValueError('In File: migrate/tests/versioning/test_schema.py\nTestCase.setUp was already called. Do not explicitly call setUp from your tests. In your own setUp, use super to call the base setUp.',)

======================================================================
FAIL: migrate.tests.versioning.test_schema.TestControlledSchema.test_upgrade_runchange
migrate.tests.versioning.test_schema.TestControlledSchema.test_upgrade_runchange
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "<string>", line 2, in test_upgrade_runchange
  File "migrate/tests/fixture/database.py", line 109, in dec
    six.reraise(*fail)
  File "migrate/tests/fixture/database.py", line 93, in dec
    raise RuntimeError('Exception during _setup(): %r' % e)
RuntimeError: Exception during _setup(): ValueError('In File: migrate/tests/versioning/test_schema.py\nTestCase.setUp was already called. Do not explicitly call setUp from your tests. In your own setUp, use super to call the base setUp.',)

======================================================================
FAIL: migrate.tests.versioning.test_schema.TestControlledSchema.test_version_control
migrate.tests.versioning.test_schema.TestControlledSchema.test_version_control
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "<string>", line 2, in test_version_control
  File "migrate/tests/fixture/database.py", line 109, in dec
    six.reraise(*fail)
  File "migrate/tests/fixture/database.py", line 93, in dec
    raise RuntimeError('Exception during _setup(): %r' % e)
RuntimeError: Exception during _setup(): ValueError('In File: migrate/tests/versioning/test_schema.py\nTestCase.setUp was already called. Do not explicitly call setUp from your tests. In your own setUp, use super to call the base setUp.',)

======================================================================
FAIL: migrate.tests.versioning.test_schema.TestControlledSchema.test_version_control_invalid
migrate.tests.versioning.test_schema.TestControlledSchema.test_version_control_invalid
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "<string>", line 2, in test_version_control_invalid
  File "migrate/tests/fixture/database.py", line 109, in dec
    six.reraise(*fail)
  File "migrate/tests/fixture/database.py", line 93, in dec
    raise RuntimeError('Exception during _setup(): %r' % e)
RuntimeError: Exception during _setup(): ValueError('In File: migrate/tests/versioning/test_schema.py\nTestCase.setUp was already called. Do not explicitly call setUp from your tests. In your own setUp, use super to call the base setUp.',)

======================================================================
FAIL: migrate.tests.versioning.test_schema.TestControlledSchema.test_version_control_specified
migrate.tests.versioning.test_schema.TestControlledSchema.test_version_control_specified
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "<string>", line 2, in test_version_control_specified
  File "migrate/tests/fixture/database.py", line 109, in dec
    six.reraise(*fail)
  File "migrate/tests/fixture/database.py", line 93, in dec
    raise RuntimeError('Exception during _setup(): %r' % e)
RuntimeError: Exception during _setup(): ValueError('In File: migrate/tests/versioning/test_schema.py\nTestCase.setUp was already called. Do not explicitly call setUp from your tests. In your own setUp, use super to call the base setUp.',)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.