File: 0004-Skip-test-requiring-non-free-file.patch

package info (click to toggle)
tomopy 1.15.3%2Bds1-1
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid
  • size: 16,296 kB
  • sloc: cpp: 8,205; ansic: 7,231; python: 6,628; sh: 169; makefile: 70
file content (20 lines) | stat: -rw-r--r-- 816 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
From: Roland Mas <lolando@debian.org>
Date: Tue, 21 Feb 2023 17:45:43 +0100
Subject: Skip test requiring non-free file

---
 test/test_tomopy/test_misc/test_phantom.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/test_tomopy/test_misc/test_phantom.py b/test/test_tomopy/test_misc/test_phantom.py
index 487b641..bf3a8e7 100644
--- a/test/test_tomopy/test_misc/test_phantom.py
+++ b/test/test_tomopy/test_misc/test_phantom.py
@@ -81,6 +81,7 @@ class TestDistributeJobs(unittest.TestCase):
         assert_equals(checkerboard(size=(128, 256)).shape, (1, 128, 256))
         assert_equals(checkerboard(size=64).shape, (1, 64, 64))
 
+    @unittest.skip("lena.tif is not DFSG-free")
     def test_lena(self):
         assert_equals(lena().dtype, 'float32')
         assert_equals(lena().shape, (1, 512, 512))