~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test__chunks_to_lines.py

  • Committer: John Arbash Meinel
  • Date: 2009-12-22 17:14:45 UTC
  • mto: This revision was merged to the branch mainline in revision 4922.
  • Revision ID: john@arbash-meinel.com-20091222171445-fm7lcwhmkfdkc01q
Handle the fact that osutils requires the feature to be available.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
 
23
23
def load_tests(standard_tests, module, loader):
24
 
    suite, _ = tests.permute_tests_for_extension(standard_tests, loader,
25
 
        'bzrlib._chunks_to_lines_py', 'bzrlib._chunks_to_lines_pyx')
 
24
    suite, _ = tests.permute_tests_for_extension(
 
25
        standard_tests, loader, 'bzrlib._chunks_to_lines_py',
 
26
        'bzrlib._chunks_to_lines_pyx')
26
27
    return suite
27
28
 
 
29
# test_osutils depends on this feature being around. We can't just use the one
 
30
# generated by load_tests, because if we only load osutils but not this module,
 
31
# then that code never gets run
 
32
compiled_chunkstolines_feature = tests.ModuleAvailableFeature(
 
33
                                    'bzrlib._chunks_to_lines_pyx')
 
34
 
28
35
 
29
36
class TestChunksToLines(tests.TestCase):
30
37