Browse Source

HPCC-12912 - Some examples in regression suite fail on python 2.6

Can't use { for sets in Python 2.6

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 10 years ago
parent
commit
a7eac09775
1 changed files with 2 additions and 2 deletions
  1. 2 2
      testing/regress/ecl/streame.ecl

+ 2 - 2
testing/regress/ecl/streame.ecl

@@ -48,7 +48,7 @@ ENDEMBED;
 
 dataset(namesRecord) streamedNames(data d, utf8 u) := EMBED(Python)
   return [  \
-     ("Gavin", "Halliday", [("a", 1),("b", 2),("c", 3)], [("aa", 11)], ("aaa", 111), 250, -1,  U'là',  U'là',  U'là', 0x01000000, d, False, {"1","2"}), \
+     ("Gavin", "Halliday", [("a", 1),("b", 2),("c", 3)], [("aa", 11)], ("aaa", 111), 250, -1,  U'là',  U'là',  U'là', 0x01000000, d, False, set(["1","2"])), \
      ("John", "Smith", [], [], ("c", 3), 250, -1,  U'là',  U'là',  u, 0x02000000, d, True, []) \
      ]
 ENDEMBED;
@@ -72,4 +72,4 @@ childrec tnamed(string s) := EMBED(Python)
   return childrec(1,s)
 ENDEMBED;
 
-output(tnamed('Yo').name);
+output(tnamed('Yo').name);