~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/doc/api/__init__.py

  • Committer: Alexander Belchenko
  • Date: 2006-06-29 08:41:31 UTC
  • mto: (1860.1.1 win32.installer)
  • mto: This revision was merged to the branch mainline in revision 1906.
  • Revision ID: bialix@ukr.net-20060629084131-3ea4d44e3204e36f
win32 installer for bzr.dev.0.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
import os
29
29
    
30
30
def test_suite():
31
 
    candidates = os.listdir(os.path.dirname(__file__))
 
31
    dir_ = os.path.dirname(__file__)
 
32
    if os.path.isdir(dir_):
 
33
        candidates = os.listdir(dir_)
 
34
    else:
 
35
        candidates = []
32
36
    scripts = [candidate for candidate in candidates
33
37
               if candidate.endswith('.txt')]
34
38
    return doctest.DocFileSuite(*scripts)