mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-16 03:02:22 +03:00
py3, pep8
This commit is contained in:
parent
1428e4140a
commit
4483dfbcb9
|
@ -519,12 +519,12 @@ class TestFileGif(PillowTestCase):
|
|||
h = GifImagePlugin.getheader(im, passed_palette)
|
||||
d = GifImagePlugin.getdata(im)
|
||||
|
||||
import cPickle as pickle
|
||||
import pickle
|
||||
# Enable to get target values on pre-refactor version
|
||||
#with open('Tests/images/gif_header_data.pkl', 'wb') as f:
|
||||
# f.write(pickle.dumps((h,d)))
|
||||
# pickle.dump((h, d), f, 1)
|
||||
with open('Tests/images/gif_header_data.pkl', 'rb') as f:
|
||||
(h_target,d_target) = pickle.loads(f.read())
|
||||
(h_target, d_target) = pickle.load(f)
|
||||
|
||||
self.assertEqual(h, h_target)
|
||||
self.assertEqual(d, d_target)
|
||||
|
|
Loading…
Reference in New Issue
Block a user