Skip to content

Commit

Permalink
account for frame.f_locals as proxy in 3.13 (#677)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmckerns committed Sep 9, 2024
1 parent b281426 commit a14e75d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dill/tests/test_detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ def test_bad_things():
s = set([(err.__class__.__name__,err.args[0]) for err in list(errors(f, 1).values())])
a = dict(s)
if not os.environ.get('COVERAGE'): #XXX: travis-ci
assert len(s) is len(a) # TypeError (and possibly PicklingError)
proxy = 0 if type(f.f_locals) is dict else 1
assert len(s) == len(a) + proxy # TypeError (and possibly PicklingError)
n = 2
assert len(a) is n if 'PicklingError' in a.keys() else n-1

Expand Down

0 comments on commit a14e75d

Please sign in to comment.