Philip Xu committed ff0efbc

Fixed test_compose.

Replaced function 'id' with function 'hash'.

The id of string objects with same value might or might not be the same,
depending on implementation details (string interning, etc.), tests
should not rely on that.

e.g. using 'id' with 'str' breaks test_compose in Python 3.2.3.

  • Participants
  • Parent commits f4792fb

Comments (0)

Files changed (1)

File tests/

     # NOTE: these functions are specifically chosen, so that when composed in
     # different orders, yield different outputs.
-    f = id
+    f = hash
     g = str
     h = type