[server,bfss] fix bfss migration test for python 3 (related #13519541)
authorAlexandre Richardson <alexandre.richardson@logilab.fr>
Fri, 10 Jun 2016 16:45:20 +0200
changeset 11277 baed516c6f6e
parent 11276 6eeb7abda47a
child 11279 e4f11ef1face
[server,bfss] fix bfss migration test for python 3 (related #13519541)
cubicweb/server/test/unittest_migractions.py
--- a/cubicweb/server/test/unittest_migractions.py	Fri Jun 10 13:23:54 2016 +0200
+++ b/cubicweb/server/test/unittest_migractions.py	Fri Jun 10 16:45:20 2016 +0200
@@ -773,7 +773,8 @@
             self.assertEqual(len(bffss_dir_content), 1)
             john.cw_clear_all_caches()
             self.assertEqual(john.photo.getvalue(),
-                             osp.join(tempfile.tempdir, bffss_dir_content[0]))
+                             osp.join(tempfile.tempdir,
+                                      bffss_dir_content[0]).encode('utf8'))
             bob.cw_clear_all_caches()
             self.assertIsNone(bob.photo)
             bill.cw_clear_all_caches()