# oslotest.timeout module

class oslotest.timeout.Timeout(default_timeout=0, scaling_factor=1)

  Bases: `fixtures.fixture.Fixture`

  Set the maximum length of time for the test to run.

  Uses OS_TEST_TIMEOUT to get the timeout.

  setUp()

    Prepare the Fixture for use.

    This should not be overridden. Concrete fixtures should implement _setUp. Overriding of setUp is still supported, just not recommended.

    After setUp has completed, the fixture will have one or more attributes which can be used (these depend totally on the concrete subclass).

    Raises

      MultipleExceptions if _setUp fails. The last exception captured within the MultipleExceptions will be a SetupError exception.

    Returns

      None.

    Changed in 1.3

      The recommendation to override setUp has been reversed - before 1.3, setUp() should be overridden, now it should not be.

    Changed in 1.3.1

      BaseException is now caught, and only subclasses of Exception are wrapped in MultipleExceptions.

this page last updated: 2021-12-15 16:29:15

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.

found an error? report a bug