Fix broken `test_is_picklable` with PT1.10 (#9810)
This commit is contained in:
parent
9e621b451f
commit
9e2347f8ff
|
@ -87,7 +87,7 @@ def is_picklable(obj: object) -> bool:
|
||||||
try:
|
try:
|
||||||
pickle.dumps(obj)
|
pickle.dumps(obj)
|
||||||
return True
|
return True
|
||||||
except (pickle.PickleError, AttributeError):
|
except (pickle.PickleError, AttributeError, RuntimeError):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue