FIX cannot use set notation for Py2.6

This commit is contained in:
Joel Nothman 2013-06-09 22:33:38 +10:00
parent fd3bd2d200
commit 210cefa5d5
1 changed files with 4 additions and 4 deletions

View File

@ -100,19 +100,19 @@ EXAMPLES = {
# not currently supported sequence of sequences
np.array([np.array([]), np.array([1, 2, 3])], dtype=object),
[np.array([]), np.array([1, 2, 3])],
[{1, 2, 3}, {1, 2}],
[frozenset({1, 2, 3}), frozenset({1, 2})],
[set([1, 2, 3]), set([1, 2])],
[frozenset([1, 2, 3]), frozenset([1, 2])],
# and also confusable as sequences of sequences
[{0: 'a', 1: 'b'}, {0: 'a'}],
]
}
NON_ARRAY_LIKE_EXAMPLES = [
{1, 2, 3},
set([1, 2, 3]),
{0: 'a', 1: 'b'},
{0: [5], 1: [5]},
'abc',
frozenset({1, 2, 3}),
frozenset([1, 2, 3]),
None,
]