[tune] More robust resolution/detection of signature (#10365)

Co-authored-by: Amog Kamsetty <amogkam@users.noreply.github.com>
This commit is contained in:
Richard Liaw
2020-09-08 11:38:16 -07:00
committed by GitHub
parent 39c598bab0
commit 5851e893ee
7 changed files with 70 additions and 36 deletions
+2 -2
View File
@@ -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)