Fix broken `test_is_picklable` with PT1.10 (#9810)

This commit is contained in:
Danielle Pintz 2021-10-05 05:22:21 -07:00 committed by GitHub
parent 9e621b451f
commit 9e2347f8ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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