mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-30 01:43:17 +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)
|
h = GifImagePlugin.getheader(im, passed_palette)
|
||||||
d = GifImagePlugin.getdata(im)
|
d = GifImagePlugin.getdata(im)
|
||||||
|
|
||||||
import cPickle as pickle
|
import pickle
|
||||||
# Enable to get target values on pre-refactor version
|
# Enable to get target values on pre-refactor version
|
||||||
#with open('Tests/images/gif_header_data.pkl', 'wb') as f:
|
#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:
|
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(h, h_target)
|
||||||
self.assertEqual(d, d_target)
|
self.assertEqual(d, d_target)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user