Codebase list pypng / 64f6517
fix tests on Python 3.9 Sascha Steinbiss 3 years ago
3 changed file(s) with 32 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 pypng (0.0.20+ds-3) unstable; urgency=medium
1
2 * Add patch from upstream to fix tests on Python 3.9.
3 Closes: 973231
4
5 -- Sascha Steinbiss <satta@debian.org> Tue, 27 Oct 2020 20:08:41 +0100
6
07 pypng (0.0.20+ds-2) unstable; urgency=medium
18
29 * Team upload.
0 Description: compatibility with Python 3.9
1 Python 3.9 removed the deprecated array.tostring method.
2 Replacing it with array.tobytes.
3 Author: Sascha Steinbiss
4 Applied-Upstream: https://github.com/drj11/pypng/commit/fe9c973c5e92f24746dfa1be8796c14a2befec4f
5 Last-Update: 2020-10-27
6 --- a/code/test_png.py
7 +++ b/code/test_png.py
8 @@ -461,13 +461,13 @@
9 def test_interlaced_array(self):
10 """Reading an interlaced PNG yields each row as an array."""
11 r = png.Reader(bytes=pngsuite.basi0g08)
12 - list(r.read()[2])[0].tostring
13 + list(r.read()[2])[0].tobytes
14
15 def test_trns_array(self):
16 """A type 2 PNG with tRNS chunk yields each row
17 as an array (using asDirect)."""
18 r = png.Reader(bytes=pngsuite.tbrn2c08)
19 - list(r.asDirect()[2])[0].tostring
20 + list(r.asDirect()[2])[0].tobytes
21
22 def test_flat(self):
23 """Test read_flat."""
00 no-scripts.patch
1 py39.patch