/loggerhead/trunk

To get this branch, use:
bzr branch https://code.breezy-vcs.org/loggerhead/trunk

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Ubuntu One Auto Copilot
  • Author(s): Jelmer Vernooij
  • Date: 2022-09-21 12:13:25 UTC
  • mfrom: (539.2.1 allow-missing-tests)
  • Revision ID: otto-copilot@canonical.com-20220921121325-vzqmoqfk58fznyu1
When tests are not installed, don't register them.

Merged from https://code.launchpad.net/~jelmer/loggerhead/allow-missing-tests/+merge/430033

Show diffs side-by-side

added added

removed removed

Lines of Context:
121
121
    try:
122
122
        from .loggerhead.tests import test_suite
123
123
    except ImportError:
124
 
        from loggerhead.tests import test_suite
125
 
    basic_tests.addTest(test_suite())
 
124
        from breezy.trace import mutter
 
125
        mutter(
 
126
            'loggerhead tests not installed, not registering tests')
 
127
    else:
 
128
        basic_tests.addTest(test_suite())
126
129
    return basic_tests