mirror of
https://github.com/wassname/ray.git
synced 2026-07-12 04:08:01 +08:00
[tune] More robust resolution/detection of signature (#10365)
Co-authored-by: Amog Kamsetty <amogkam@users.noreply.github.com>
This commit is contained in:
@@ -79,7 +79,7 @@ class ValidateUtilTest(unittest.TestCase):
|
||||
# this is not serializable
|
||||
e = threading.Event()
|
||||
|
||||
def test():
|
||||
def test(config):
|
||||
print(e)
|
||||
|
||||
assert diagnose_serialization(test) is not True
|
||||
@@ -88,7 +88,7 @@ class ValidateUtilTest(unittest.TestCase):
|
||||
# the `test` scope.
|
||||
|
||||
# correct implementation
|
||||
def test():
|
||||
def test(config):
|
||||
e = threading.Event()
|
||||
print(e)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user