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:
|
||||
pickle.dumps(obj)
|
||||
return True
|
||||
except (pickle.PickleError, AttributeError):
|
||||
except (pickle.PickleError, AttributeError, RuntimeError):
|
||||
return False
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue