~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to www/apps/tutorialservice/test/TestFramework.py

  • Committer: dcoles
  • Date: 2008-08-21 03:05:11 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:1036
TutorialService: Fix up bug in setting of stdin (would crash scripts)

Show diffs side-by-side

added added

removed removed

Lines of Context:
337
337
        # stdin must have a newline at the end for raw_input to work properly
338
338
        if stdin[-1:] != '\n':
339
339
            stdin += '\n'
340
 
        self.stdin = stdin
 
340
        self._stdin = stdin
341
341
 
342
342
    def add_file(self, filename, data):
343
343
        """ Insert the given filename-data pair into the filespace for this test case"""
515
515
        return {'code': code,
516
516
                'result': call['result'],
517
517
                'exception': exception_name,
518
 
                'stdout': call['stdout'],
519
 
                'stderr': call['stderr'],
 
518
                'stdout': self._console.stdout.read(),
 
519
                'stderr': self._console.stderr.read(),
520
520
                'modified_files': None}
521
521
 
522
522
class TestSuite: