OSDN Git Service

fix performance tests
authorMartin Renold <martinxyz@gmx.ch>
Sun, 24 Oct 2010 19:09:38 +0000 (21:09 +0200)
committerMartin Renold <martinxyz@gmx.ch>
Sun, 24 Oct 2010 19:10:22 +0000 (21:10 +0200)
confpath must be a unicode object

tests/guicontrol.py

index 39a87af..bb96afb 100644 (file)
@@ -18,7 +18,7 @@ class GUI:
         self.tempdir = tempfile.mkdtemp()
         from gui import application
         os.system('cp -a brushes ' + self.tempdir)
-        self.app = application.Application(datapath='..', confpath=self.tempdir, filenames=[])
+        self.app = application.Application(datapath=u'..', confpath=unicode(self.tempdir), filenames=[])
 
         # fatal exceptions, please
         def excepthook(exctyp, value, tb):