~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-04-07 04:19:42 UTC
  • Revision ID: grantw@unimelb.edu.au-20090407041942-74fxc3ab98hj7g9l
Treat a NULL exercise.include the same as an empty one. Don't crash.

Show diffs side-by-side

added added

removed removed

Lines of Context:
577
577
        """
578
578
        
579
579
        # if empty, make sure it can still be executed
580
 
        if include_code == "":
 
580
        if include_code == "" or include_code is None:
581
581
            include_code = "pass"
582
582
        self._include_code = include_code
583
583