mirror of
https://github.com/wassname/ray.git
synced 2026-07-03 05:28:20 +08:00
Tuples as keys in dicts can be serialized
This commit is contained in:
@@ -3,8 +3,9 @@ import libnumbuf
|
||||
import numpy as np
|
||||
from numpy.testing import assert_equal
|
||||
|
||||
TEST_OBJECTS = [[1, "hello", 3.0], 42, 43L, "hello world", u"x", u"\u262F",
|
||||
42.0, 1L << 62, (1.0, "hi"),
|
||||
TEST_OBJECTS = [{(1,2) : 1}, {() : 2}, [1, "hello", 3.0], 42, 43L, "hello world",
|
||||
u"x", u"\u262F", 42.0,
|
||||
1L << 62, (1.0, "hi"),
|
||||
None, (None, None), ("hello", None),
|
||||
True, False, (True, False), "hello",
|
||||
{True: "hello", False: "world"},
|
||||
|
||||
Reference in New Issue
Block a user