Hi,

Please find attached the debdiff that should fix most of the issues
listed (enough that the issue should not be marked "serious" anymore,
thus unblock bullseye release).

Thanks!

Romain, on behalf on the Debian Saslzburg BSP.

diff -Nru pillow-8.1.2/debian/changelog pillow-8.1.2+dfsg/debian/changelog
--- pillow-8.1.2/debian/changelog	2021-03-09 08:12:51.000000000 +0100
+++ pillow-8.1.2+dfsg/debian/changelog	2021-04-24 15:51:24.000000000 +0200
@@ -1,3 +1,18 @@
+pillow (8.1.2+dfsg-0.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix d/copyright issues. Closes: #952899.
+    - Convert d/copyright to machine-readable debian/copyright file.
+    - Check that "Alex Clark **and contributors** appears in d/copyright.
+    - Add copyright information for Tests/fonts.
+    - Add copyright information for Tests/images/bmp.
+    - Exclude some tests and their data because of the missing license on the
+      test data files.
+    - Mark some source files with their specific quirks/licenses based on
+      their headers.
+
+ -- Romain Porte <[email protected]>  Sat, 24 Apr 2021 15:51:24 +0200
+
 pillow (8.1.2-1) unstable; urgency=high
 
   * New upstream version.
@@ -625,7 +640,7 @@
 
 python-imaging (1.1.4-3.1) unstable; urgency=low
 
-  * NMU. 
+  * NMU.
   * debian/control: Build-Depends: change libjpegg-dev to libjpeg-dev.
     (Closes: #303897). Thanks Daniel Schepler.
 
@@ -752,7 +767,7 @@
 
   * NMU, coordinated with maintainer, to make package compliant with
     the new Debian Python policy draft (#117859, #118267):
-    
+
     - python2 packages removed
     - new python1.5, python2.1 and python2.2 packages
     - python-* packages are empty placeholders for the default
diff -Nru pillow-8.1.2/debian/copyright pillow-8.1.2+dfsg/debian/copyright
--- pillow-8.1.2/debian/copyright	2020-04-27 10:22:45.000000000 +0200
+++ pillow-8.1.2+dfsg/debian/copyright	2021-04-24 15:51:24.000000000 +0200
@@ -1,63 +1,352 @@
-This package was debianized by Simon Richter <[email protected]> on
-Mon, 21 May 2001 22:20:43 +0200.
-As of 2004-01-05, it is maintained by Matthias Urlichs <[email protected]>.
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Pillow
+Upstream-Contact:
+Source: https://pypi.python.org/pypi/Pillow/
+Files-Excluded:
+# Missing license data, see:
+# https://github.com/python-pillow/Pillow/issues/4591#issuecomment-765711479
+ Tests/images/a.fli
+ Tests/test_file_fli.py
+# Missing license data from https://ghrc.nsstc.nasa.gov/hydro/details/cmx3g8
+ Tests/test_file_mcidas.py
+ Tests/images/cmx3g8_wv_1998.260_0745_mcidas.ara
+ Tests/images/cmx3g8_wv_1998.260_0745_mcidas.png
 
-It was downloaded from https://pypi.python.org/pypi/Pillow/
+# Code
 
+Files: *
 Copyright:
+ 1997-2011 Secret Labs AB
+ 1995-2011 Fredrik Lundh
+ 2010-2020 Alex Clark and contributors
+License: HPND
 
-The Python Imaging Library is
-
-Copyright (c) 1997-2011 by Secret Labs AB
-Copyright (c) 1995-2011 by Fredrik Lundh
-Copyright (c) 2010-2020 by Alex Clark and contributors
-
-By obtaining, using, and/or copying this software and/or its
-associated documentation, you agree that you have read, understood,
-and will comply with the following terms and conditions:
-
-Permission to use, copy, modify, and distribute this software and its
-associated documentation for any purpose and without fee is hereby
-granted, provided that the above copyright notice appears in all
-copies, and that both that copyright notice and this permission notice
-appear in supporting documentation, and that the name of Secret Labs
-AB or the author not be used in advertising or publicity pertaining to
-distribution of the software without specific, written prior
-permission.
-
-SECRET LABS AB AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO
-THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
-FITNESS.  IN NO EVENT SHALL SECRET LABS AB OR THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
-OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-
-Tests/fonts:
-
-NotoNastaliqUrdu-Regular.ttf, NotoSansSymbols-Regular.ttf
-  from https://github.com/googlei18n/noto-fonts
-
-NotoSansJP-Thin.otf
-  from https://www.google.com/get/noto/help/cjk/
-
-AdobeVFPrototype.ttf
-  from https://github.com/adobe-fonts/adobe-variable-font-prototype
-
-TINY5x3GX.ttf
-  from http://velvetyne.fr/fonts/tiny
-
-ArefRuqaa-Regular.ttf
-  from https://github.com/google/fonts/tree/master/ofl/arefruqaater-x20b.pcf
-  from http://terminus-font.sourceforge.net/
-
-All of the above fonts are published under the
-SIL Open Font License (OFL) v1.1
-(http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL),
-which allows you to copy, modify, and redistribute them if you need
-to.
-
-10x20-ISO8859-1.pcf, from https://packages.ubuntu.com/xenial/xfonts-base
-
-"Public domain font.  Share and enjoy."
+Files: debian/*
+Copyright:
+ 2001 Simon Richter <[email protected]>
+ 2004 Matthias Urlichs <[email protected]>
+License: HPND
+
+Files:
+ docs/example/DdsImagePlugin.py
+ src/PIL/BlpImagePlugin.py
+ src/PIL/DdsImagePlugin.py
+ src/PIL/FtexImagePlugin.py
+ src/libImaging/BcnDecode.c
+License: public-domain
+
+Files:
+ src/libImaging/QuantOctree.c
+Copyright: 2010 Oliver Tonnhofer <[email protected]>, Omniscale
+License:
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.
 
+Files: src/Tk/_tkmini.h
+Copyright:
+ 1987-1994 The Regents of the University of California.
+ 1993-1996 Lucent Technologies.
+ 1994-1998 Sun Microsystems, Inc.
+ 1998-2000 by Scriptics Corporation.
+ 2002 by Kevin B. Kenny.  All rights reserved.
+License: tcltk
+ This software is copyrighted by the Regents of the University
+ of California, Sun Microsystems, Inc., Scriptics Corporation,
+ and other parties. The following terms apply to all files
+ associated with the software unless explicitly disclaimed in
+ individual files.
+ .
+ The authors hereby grant permission to use, copy, modify,
+ distribute, and license this software and its documentation
+ for any purpose, provided that existing copyright notices are
+ retained in all copies and that this notice is included
+ verbatim in any distributions. No written agreement, license,
+ or royalty fee is required for any of the authorized uses.
+ Modifications to this software may be copyrighted by their
+ authors and need not follow the licensing terms described
+ here, provided that the new terms are clearly indicated on
+ the first page of each file where they apply.
+ .
+ IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO
+ ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR
+ CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF THIS
+ SOFTWARE, ITS DOCUMENTATION, OR ANY DERIVATIVES THEREOF, EVEN
+ IF THE AUTHORS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ DAMAGE.
+ .
+ THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY
+ WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+ PURPOSE, AND NON-INFRINGEMENT. THIS SOFTWARE IS PROVIDED ON
+ AN "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE NO
+ OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES,
+ ENHANCEMENTS, OR MODIFICATIONS.
+ .
+ GOVERNMENT USE: If you are acquiring this software on behalf
+ of the U.S. government, the Government shall have only
+ "Restricted Rights" in the software and related documentation
+ as defined in the Federal Acquisition Regulations (FARs) in
+ Clause 52.227.19 (c) (2). If you are acquiring the software
+ on behalf of the Department of Defense, the software shall be
+ classified as "Commercial Computer Software" and the
+ Government shall have only "Restricted Rights" as defined in
+ Clause 252.227-7013 (c) (1) of DFARs. Notwithstanding the
+ foregoing, the authors grant the U.S. Government and others
+ acting in its behalf permission to use and distribute the
+ software in accordance with the terms specified in this
+ license
+
+# Fonts
+
+Files:
+ Tests/fonts/NotoNastaliqUrdu-Regular.ttf
+ Tests/fonts/NotoSansSymbols-Regular.ttf
+Copyright: 2018 The Noto Project Authors
+License: OFL-v1.1
+Comment: from https://github.com/googlei18n/noto-fonts
+
+Files: Tests/fonts/NotoSans-Regular.ttf
+Copyright: 2018 The Noto Project Authors
+License: OFL-v1.1
+Comment: from https://www.google.com/get/noto/
+
+Files: Tests/fonts/NotoSansJP-Regular.otf
+Copyright: 2018 The Noto Project Authors
+License: OFL-v1.1
+Comment: from https://www.google.com/get/noto/help/cjk/
+
+Files: Tests/fonts/NotoColorEmoji.ttf
+Copyright: 2018 The Noto Project Authors
+License: OFL-v1.1
+Comment: from https://github.com/googlefonts/noto-emoji
+
+Files: Tests/fonts/AdobeVFPrototype.ttf
+Copyright: 2017 Adobe
+License: OFL-v1.1
+Comment: from https://github.com/adobe-fonts/adobe-variable-font-prototype
+
+Files: Tests/fonts/TINY5x3GX.ttf
+Copyright: 2018 Velvetyne Type Foundry
+License: OFL-v1.1
+Comment: from http://velvetyne.fr/fonts/tiny
+
+Files: Tests/fonts/ArefRuqaa-Regular.ttf
+Copyright: Copyright 2015-2021 The Aref Ruqaa Project Authors
+License: OFL-v1.1
+Comment: from https://github.com/google/fonts/tree/master/ofl/arefruqaa
+
+Files: Tests/fonts/ter-x20b.pcf
+License: OFL-v1.1
+Copyright: 2010-2014 Dimitar Toshkov Zhekov
+Comment: from http://terminus-font.sourceforge.net/
+
+Files: Tests/fonts/BungeeColor-Regular_colr_Windows.ttf
+Copyright:  2016 The Bungee Project Authors ([email protected])
+License: OFL-v1.1
+Comment: from https://github.com/djrrb/bungee
+
+Files: Tests/fonts/FreeMono.ttf
+Copyright: 2018 GNU Freefont contributors
+License: GPLv3-with-GPL-font-exception
+
+Files: Tests/fonts/OpenSansCondensed-LightItalic.ttf
+Copyright: Steve Matteson
+Comment: from https://fonts.google.com/specimen/Open+Sans
+License: Apache-2.0
+
+Files: Tests/fonts/DejaVuSans-24-*-stripped.ttf
+Comment: based on DejaVuSans.ttf converted using FontForge to add bitmap
+ strikes and keep only the ASCII range.
+
+Files: Tests/fonts/10x20-ISO8859-1.pcf
+License: public-domain
+Comment: from https://packages.ubuntu.com/xenial/xfonts-base
+ "Public domain font.  Share and enjoy."
+
+Files: Tests/images/bmp/*
+License: public-domain
+Comment: from https://github.com/jsummers/bmpsuite
+
+License: HPND
+ By obtaining, using, and/or copying this software and/or its
+ associated documentation, you agree that you have read, understood,
+ and will comply with the following terms and conditions:
+ .
+ Permission to use, copy, modify, and distribute this software and its
+ associated documentation for any purpose and without fee is hereby
+ granted, provided that the above copyright notice appears in all
+ copies, and that both that copyright notice and this permission notice
+ appear in supporting documentation, and that the name of Secret Labs
+ AB or the author not be used in advertising or publicity pertaining to
+ distribution of the software without specific, written prior
+ permission.
+ .
+ SECRET LABS AB AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO
+ THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ FITNESS.  IN NO EVENT SHALL SECRET LABS AB OR THE AUTHOR BE LIABLE FOR
+ ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
+ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+License: OFL-v1.1
+ -----------------------------------------------------------
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
+ -----------------------------------------------------------
+ .
+ PREAMBLE
+ The goals of the Open Font License (OFL) are to stimulate worldwide
+ development of collaborative font projects, to support the font
+ creation efforts of academic and linguistic communities, and to
+ provide a free and open framework in which fonts may be shared and
+ improved in partnership with others.
+ .
+ The OFL allows the licensed fonts to be used, studied, modified and
+ redistributed freely as long as they are not sold by themselves. The
+ fonts, including any derivative works, can be bundled, embedded,
+ redistributed and/or sold with any software provided that any reserved
+ names are not used by derivative works. The fonts and derivatives,
+ however, cannot be released under any other type of license. The
+ requirement for fonts to remain under this license does not apply to
+ any document created using the fonts or their derivatives.
+ .
+ DEFINITIONS
+ "Font Software" refers to the set of files released by the Copyright
+ Holder(s) under this license and clearly marked as such. This may
+ include source files, build scripts and documentation.
+ .
+ "Reserved Font Name" refers to any names specified as such after the
+ copyright statement(s).
+ .
+ "Original Version" refers to the collection of Font Software
+ components as distributed by the Copyright Holder(s).
+ .
+ "Modified Version" refers to any derivative made by adding to,
+ deleting, or substituting -- in part or in whole -- any of the
+ components of the Original Version, by changing formats or by porting
+ the Font Software to a new environment.
+ .
+ "Author" refers to any designer, engineer, programmer, technical
+ writer or other person who contributed to the Font Software.
+ .
+ PERMISSION & CONDITIONS
+ Permission is hereby granted, free of charge, to any person obtaining
+ a copy of the Font Software, to use, study, copy, merge, embed,
+ modify, redistribute, and sell modified and unmodified copies of the
+ Font Software, subject to the following conditions:
+ .
+ 1) Neither the Font Software nor any of its individual components, in
+ Original or Modified Versions, may be sold by itself.
+ .
+ 2) Original or Modified Versions of the Font Software may be bundled,
+ redistributed and/or sold with any software, provided that each copy
+ contains the above copyright notice and this license. These can be
+ included either as stand-alone text files, human-readable headers or
+ in the appropriate machine-readable metadata fields within text or
+ binary files as long as those fields can be easily viewed by the user.
+ .
+ 3) No Modified Version of the Font Software may use the Reserved Font
+ Name(s) unless explicit written permission is granted by the
+ corresponding Copyright Holder. This restriction only applies to the
+ primary font name as presented to the users.
+ .
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
+ Software shall not be used to promote, endorse or advertise any
+ Modified Version, except to acknowledge the contribution(s) of the
+ Copyright Holder(s) and the Author(s) or with their explicit written
+ permission.
+ .
+ 5) The Font Software, modified or unmodified, in part or in whole,
+ must be distributed entirely under this license, and must not be
+ distributed under any other license. The requirement for fonts to
+ remain under this license does not apply to any document created using
+ the Font Software.
+ .
+ TERMINATION
+ This license becomes null and void if any of the above conditions are
+ not met.
+ .
+ DISCLAIMER
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
+ OTHER DEALINGS IN THE FONT SOFTWARE.
+
+License: Apache-2.0
+ On Debian systems the full text of the Apache-2.0 license can be found in
+ /usr/share/common-licenses/Apache-2.0.
+
+License: GPLv3-with-GPL-font-exception
+ This package is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or (at your
+ option) any later version.
+ .
+ The fonts are distributed in the hope that they will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License can be found in "/usr/share/common-licenses/GPL-3".
+ .
+ As a special exception, if you create a document which uses this font, and
+ embed this font or unaltered portions of this font into the document, this
+ font does not by itself cause the resulting document to be covered by the GNU
+ General Public License. This exception does not however invalidate any other
+ reasons why the document might be covered by the GNU General Public License.
+ If you modify this font, you may extend this exception to your version of the
+ font, but you are not obligated to do so. If you do not wish to do so, delete
+ this exception statement from your version.
+ .
+ Clarification of exception, regarding intended use of embedded fonts
+ .
+ The exception to the GNU General Public License for the GNU FreeFont software
+ exempts a user that embeds part or all of the GNU FreeFont software in a
+ document, as well as subsequent users and distributors of the document, from
+ complying with the GNU GPL under some circumstances.
+ .
+ Specifically, this exemption applies when the embedder has not modified the
+ GNU FreeFont software before embedding it. This is true even though portions
+ of the software become part of the document.
+ .
+ Therefore users of fonts released with this exception need not concern
+ themselves with the license terms to:
+ .
+     Create a printable file using the fonts.
+     Publish such a file.
+     Redistribute such a file.
+     Publicly display such a file.
+     Print such a file or display it on the screen.
+ .
+ However anyone distributing the font software as software separately from the
+ document, even if the way the font software was obtained was to extract it
+ from a document, would have to comply with the GNU GPL.
+ .
+ A modified version of the GNU FreeFont software must comply with the GNU GPL.
+ It may optionally carry the same exception as the GNU FreeFont software
+ itself, and we recommend releasing modified versions that way. If it does,
+ then users will likewise be permitted to embed the modified version in
+ documents and be exempt from the GNU GPL requirements on those documents.
Les fichiers binaires /tmp/Iq9zroeeNn/pillow-8.1.2/Tests/images/a.fli et /tmp/P9VO_bFryM/pillow-8.1.2+dfsg/Tests/images/a.fli sont différents
Les fichiers binaires /tmp/Iq9zroeeNn/pillow-8.1.2/Tests/images/cmx3g8_wv_1998.260_0745_mcidas.ara et /tmp/P9VO_bFryM/pillow-8.1.2+dfsg/Tests/images/cmx3g8_wv_1998.260_0745_mcidas.ara sont différents
Les fichiers binaires /tmp/Iq9zroeeNn/pillow-8.1.2/Tests/images/cmx3g8_wv_1998.260_0745_mcidas.png et /tmp/P9VO_bFryM/pillow-8.1.2+dfsg/Tests/images/cmx3g8_wv_1998.260_0745_mcidas.png sont différents
diff -Nru pillow-8.1.2/Tests/test_file_fli.py pillow-8.1.2+dfsg/Tests/test_file_fli.py
--- pillow-8.1.2/Tests/test_file_fli.py	2021-03-06 06:17:25.000000000 +0100
+++ pillow-8.1.2+dfsg/Tests/test_file_fli.py	1970-01-01 01:00:00.000000000 +0100
@@ -1,126 +0,0 @@
-import pytest
-
-from PIL import FliImagePlugin, Image
-
-from .helper import assert_image_equal, is_pypy
-
-# created as an export of a palette image from Gimp2.6
-# save as...-> hopper.fli, default options.
-static_test_file = "Tests/images/hopper.fli"
-
-# From https://samples.libav.org/fli-flc/
-animated_test_file = "Tests/images/a.fli"
-
-
-def test_sanity():
-    with Image.open(static_test_file) as im:
-        im.load()
-        assert im.mode == "P"
-        assert im.size == (128, 128)
-        assert im.format == "FLI"
-        assert not im.is_animated
-
-    with Image.open(animated_test_file) as im:
-        assert im.mode == "P"
-        assert im.size == (320, 200)
-        assert im.format == "FLI"
-        assert im.info["duration"] == 71
-        assert im.is_animated
-
-
[email protected](is_pypy(), reason="Requires CPython")
-def test_unclosed_file():
-    def open():
-        im = Image.open(static_test_file)
-        im.load()
-
-    pytest.warns(ResourceWarning, open)
-
-
-def test_closed_file():
-    def open():
-        im = Image.open(static_test_file)
-        im.load()
-        im.close()
-
-    pytest.warns(None, open)
-
-
-def test_context_manager():
-    def open():
-        with Image.open(static_test_file) as im:
-            im.load()
-
-    pytest.warns(None, open)
-
-
-def test_tell():
-    # Arrange
-    with Image.open(static_test_file) as im:
-
-        # Act
-        frame = im.tell()
-
-        # Assert
-        assert frame == 0
-
-
-def test_invalid_file():
-    invalid_file = "Tests/images/flower.jpg"
-
-    with pytest.raises(SyntaxError):
-        FliImagePlugin.FliImageFile(invalid_file)
-
-
-def test_n_frames():
-    with Image.open(static_test_file) as im:
-        assert im.n_frames == 1
-        assert not im.is_animated
-
-    with Image.open(animated_test_file) as im:
-        assert im.n_frames == 384
-        assert im.is_animated
-
-
-def test_eoferror():
-    with Image.open(animated_test_file) as im:
-        n_frames = im.n_frames
-
-        # Test seeking past the last frame
-        with pytest.raises(EOFError):
-            im.seek(n_frames)
-        assert im.tell() < n_frames
-
-        # Test that seeking to the last frame does not raise an error
-        im.seek(n_frames - 1)
-
-
-def test_seek_tell():
-    with Image.open(animated_test_file) as im:
-
-        layer_number = im.tell()
-        assert layer_number == 0
-
-        im.seek(0)
-        layer_number = im.tell()
-        assert layer_number == 0
-
-        im.seek(1)
-        layer_number = im.tell()
-        assert layer_number == 1
-
-        im.seek(2)
-        layer_number = im.tell()
-        assert layer_number == 2
-
-        im.seek(1)
-        layer_number = im.tell()
-        assert layer_number == 1
-
-
-def test_seek():
-    with Image.open(animated_test_file) as im:
-        im.seek(50)
-
-        with Image.open("Tests/images/a_fli.png") as expected:
-            assert_image_equal(im, expected)
diff -Nru pillow-8.1.2/Tests/test_file_mcidas.py pillow-8.1.2+dfsg/Tests/test_file_mcidas.py
--- pillow-8.1.2/Tests/test_file_mcidas.py	2021-03-06 06:17:25.000000000 +0100
+++ pillow-8.1.2+dfsg/Tests/test_file_mcidas.py	1970-01-01 01:00:00.000000000 +0100
@@ -1,31 +0,0 @@
-import pytest
-
-from PIL import Image, McIdasImagePlugin
-
-from .helper import assert_image_equal
-
-
-def test_invalid_file():
-    invalid_file = "Tests/images/flower.jpg"
-
-    with pytest.raises(SyntaxError):
-        McIdasImagePlugin.McIdasImageFile(invalid_file)
-
-
-def test_valid_file():
-    # Arrange
-    # https://ghrc.nsstc.nasa.gov/hydro/details/cmx3g8
-    # https://ghrc.nsstc.nasa.gov/pub/fieldCampaigns/camex3/cmx3g8/browse/
-    test_file = "Tests/images/cmx3g8_wv_1998.260_0745_mcidas.ara"
-    saved_file = "Tests/images/cmx3g8_wv_1998.260_0745_mcidas.png"
-
-    # Act
-    with Image.open(test_file) as im:
-        im.load()
-
-        # Assert
-        assert im.format == "MCIDAS"
-        assert im.mode == "I"
-        assert im.size == (1800, 400)
-        with Image.open(saved_file) as im2:
-            assert_image_equal(im, im2)

Reply via email to