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

« back to all changes in this revision

Viewing changes to ivle/webapp/tutorial/test/TestFramework.py

  • Committer: William Grant
  • Date: 2009-03-17 04:48:07 UTC
  • mfrom: (1099.1.243 exercise-ui)
  • Revision ID: grantw@unimelb.edu.au-20090317044807-pozdt54fapazp2sp
Merge lp:~ivle-dev/ivle/exercise-ui.

Lecturers can now add and edit exercises, and worksheets can be written
in RST directly inside IVLE.

Show diffs side-by-side

added added

removed removed

Lines of Context:
579
579
        # if empty, make sure it can still be executed
580
580
        if include_code == "":
581
581
            include_code = "pass"
582
 
        self._include_code = str(include_code)
 
582
        self._include_code = include_code
583
583
        
584
584
        include_space = {}
585
585
        try:
586
586
            exec self._include_code in include_space
587
587
        except:
588
 
            raise TestCreationError("Bad include code")
 
588
            raise TestCreationError("-= Bad include code =-\n" + include_code)
589
589
 
590
590
        self._include_space = include_space
591
591