migration.py
branchstable
changeset 6687 0b1f5c14646e
parent 6659 6205927e927a
child 6696 160ca95eb4cc
--- a/migration.py	Fri Nov 05 16:38:17 2010 +0100
+++ b/migration.py	Fri Nov 05 15:08:24 2010 +0100
@@ -358,8 +358,10 @@
             self.commit()
         else: # script_mode == 'doctest'
             import doctest
-            doctest.testfile(migrscript, module_relative=False,
-                             optionflags=doctest.ELLIPSIS, globs=scriptlocals)
+            return doctest.testfile(migrscript, module_relative=False,
+                                    optionflags=doctest.ELLIPSIS,
+                                    encoding='utf-8',
+                                    globs=scriptlocals)
         self._context_stack.pop()
 
     def cmd_option_renamed(self, oldname, newname):