MCPcopy Create free account
hub / github.com/dask/dask / test_singleton_expr

Function test_singleton_expr

dask/tests/test_expr.py:108–118  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

106
107
108def test_singleton_expr():
109 assert MySingleton(1, 2) is MySingleton(1, 2)
110 # We don't want to deduplicate if there is an __init__ since that may
111 # mutate our singleton reference and we have no way to know
112 assert MySingletonWithCustomInit(1, 2) is not MySingletonWithCustomInit(1, 2)
113 assert MySingletonInheritsCustomInit(1, 2) is not MySingletonInheritsCustomInit(
114 1, 2
115 )
116 assert MySingletonInheritsCustomInitAsMixin(
117 1, 2
118 ) is not MySingletonInheritsCustomInitAsMixin(1, 2)
119
120
121@pytest.mark.slow()

Callers

nothing calls this directly

Tested by

no test coverage detected