~nmu-sscheel/gtg/rework-task-editor

« back to all changes in this revision

Viewing changes to GTG/tests/test_apidocs.py

  • Committer: Luca Invernizzi
  • Date: 2010-09-08 14:15:11 UTC
  • mfrom: (825.1.227 liblarch_rebased)
  • Revision ID: invernizzi.l@gmail.com-20100908141511-vsctgw74dj1xp0wi
Liblarch is now in trunk.
Note that performances are still bad and it misses DnD and multi-select
support, but its state is better that the current trunk.
Backends are added in this merge too.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
 
35
35
    
36
36
    def test_pydoctor(self):
37
 
        if int(subprocess.call(['which', 'pydoctor'])):
 
37
        if int(subprocess.call(['which', 'pydoctor'], stdout = subprocess.PIPE)):
38
38
            #if no pydoctor is present, abort the test w/out giving error
39
39
            return
40
40
        GTG_basedir = os.path.dirname(GTG.__file__)
46
46
                '--html-output=' + api_dir , 
47
47
                '--project-name=GTG',
48
48
                '--project-url=http://gtg.fritalk.com/']
49
 
        assert(int(subprocess.call(args)) == 0)
 
49
        #we suppress printing of errors to keep a clean output
 
50
        assert(int(subprocess.call(args,
 
51
                                   stdout = subprocess.PIPE,
 
52
                                   stderr = subprocess.PIPE,)) == 0)
50
53
        shutil.rmtree(api_dir)
51
54
 
52
55
def test_suite():