[PATCH saem_ref] Let "ark" value generator return unicode string

Denis Laxalde denis.laxalde at logilab.fr
Thu Feb 22 15:50:19 CET 2018


# HG changeset patch
# User Denis Laxalde <denis.laxalde at logilab.fr>
# Date 1519310801 -3600
#      Thu Feb 22 15:46:41 2018 +0100
# Node ID f65b78b0a63113fc520a78394eddecfcb6e2f081
# Parent  4e2b908a791f0250f1bc26f460ecad8b5bb3574b
# Available At http://hg.logilab.org/review/cubes/saem_ref
#              hg pull http://hg.logilab.org/review/cubes/saem_ref -r f65b78b0a631
# EXP-Topic ark/fix-valuegenerator
Let "ark" value generator return unicode string

Followup on ce883b461791.

diff --git a/test/test_saem_ref.py b/test/test_saem_ref.py
--- a/test/test_saem_ref.py
+++ b/test/test_saem_ref.py
@@ -98,7 +98,7 @@ class MyValueGenerator(ValueGenerator):
         return '/'.join([
             ''.join(random.sample('0123456789', 5)),
             ''.join(random.sample('qwertyuvckj87932141', 10)),
-        ])
+        ]).decode('ascii')
 
 
 class AutomaticWebTest(testlib.AutomaticWebTest):



More information about the saem-devel mailing list