[med-svn] [Git][python-team/modules/tifffile][master] 2 commits: Disable tests that require remote files

Ole Streicher gitlab at salsa.debian.org
Sat May 16 20:30:06 BST 2020



Ole Streicher pushed to branch master at Debian Python Team / DPMT / tifffile


Commits:
33221d69 by Ole Streicher at 2020-05-16T18:11:04+02:00
Disable tests that require remote files

- - - - -
c51d80cd by Ole Streicher at 2020-05-16T21:29:59+02:00
Use CI tests provided by upstream

- - - - -


4 changed files:

- + debian/patches/Disable-tests-that-require-remote-files.patch
- debian/patches/series
- debian/tests/control
- − debian/tests/python-import


Changes:

=====================================
debian/patches/Disable-tests-that-require-remote-files.patch
=====================================
@@ -0,0 +1,28 @@
+From: Ole Streicher <olebole at debian.org>
+Date: Sat, 16 May 2020 18:10:59 +0200
+Subject: Disable tests that require remote files
+
+---
+ tests/test_tifffile.py | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/tests/test_tifffile.py b/tests/test_tifffile.py
+index 1e2a11f..91b9b38 100644
+--- a/tests/test_tifffile.py
++++ b/tests/test_tifffile.py
+@@ -370,6 +370,7 @@ def test_issue_legacy_kwargs():
+                     pass
+ 
+ 
++ at pytest.mark.skip(reason="file not available")
+ def test_issue_infinite_loop():
+     """Test infinite loop reading more than two tags of same code in IFD."""
+     # Reported by D. Hughes on 2019.7.26
+@@ -1744,6 +1745,7 @@ def assert_filehandle(fh, offset=0):
+                            numpy.arange(255, dtype='uint8'))
+ 
+ 
++ at pytest.mark.skip(reason="remote connection not available")
+ def test_filehandle_seekable():
+     """Test FileHandle must be seekable."""
+     try:


=====================================
debian/patches/series
=====================================
@@ -1 +1,2 @@
 Don-t-install-lsm2bin.patch
+Disable-tests-that-require-remote-files.patch


=====================================
debian/tests/control
=====================================
@@ -1,3 +1,2 @@
-Tests: python-import
-Depends: @, imagemagick, python3
-Restrictions: allow-stderr
+Test-Command: cd tests; python3 -m pytest -v
+Depends: @, python3


=====================================
debian/tests/python-import deleted
=====================================
@@ -1,21 +0,0 @@
-#!/usr/bin/python3
-# autopkgtest check: Try importing tiffile module
-# Author: Sascha Steinbiss <satta at debian.org>
-
-import tifffile
-import os
-import tempfile
-
-print(tifffile.__version__)
-
-tmpdir = tempfile.mkdtemp()
-filename = "%s/foo.tiff" % (tmpdir)
-os.system("convert -size 100x100 xc:white %s" % (filename))
-with tifffile.TiffFile(filename) as tif:
-    images = tif.asarray()
-    for page in tif.pages:
-        for tag in page.tags.values():
-            t = tag.name, tag.value
-            print(t)
-os.unlink(filename)
-os.removedirs(tmpdir)



View it on GitLab: https://salsa.debian.org/python-team/modules/tifffile/-/compare/041ce9173cc45e056f8707b76904741c96f36f14...c51d80cd402d4987a10df5e95da323debe80c3c0

-- 
View it on GitLab: https://salsa.debian.org/python-team/modules/tifffile/-/compare/041ce9173cc45e056f8707b76904741c96f36f14...c51d80cd402d4987a10df5e95da323debe80c3c0
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20200516/f15dc26f/attachment-0001.html>


More information about the debian-med-commit mailing list