[med-svn] [Git][med-team/pydicom][master] Patch to fix numpy test

Shayan Doust gitlab at salsa.debian.org
Fri Jul 17 14:19:12 BST 2020



Shayan Doust pushed to branch master at Debian Med / pydicom


Commits:
6bd0cda4 by Shayan Doust at 2020-07-17T14:18:53+01:00
Patch to fix numpy test

- - - - -


2 changed files:

- + debian/patches/fix_numpy_test.patch
- debian/patches/series


Changes:

=====================================
debian/patches/fix_numpy_test.patch
=====================================
@@ -0,0 +1,17 @@
+Description: fix numpy test to use double quotes
+ Upstream seemingly reverted to using single quotes instead of double quotes, which throws an assertion during the test.
+Author: Shayan Doust <hello at shayandoust.me>
+Last-Update: 2020-07-17
+---
+
+--- pydicom.orig/pydicom/tests/test_handler_util.py
++++ pydicom/pydicom/tests/test_handler_util.py
+@@ -945,7 +945,7 @@
+         ds = dcmread(PAL_08_256_0_16_1F)
+         ds.RedPaletteColorLookupTableDescriptor[2] = 15
+         msg = (
+-            r'data type "uint15" not understood'
++            r"data type ['\"]uint15['\"] not understood"
+         )
+         with pytest.raises(TypeError, match=msg):
+             apply_color_lut(ds.pixel_array, ds)


=====================================
debian/patches/series
=====================================
@@ -1 +1,2 @@
+fix_numpy_test.patch
 deb_no_unicode



View it on GitLab: https://salsa.debian.org/med-team/pydicom/-/commit/6bd0cda42321b24dc218bfa38c5f44c1880fc9b5

-- 
View it on GitLab: https://salsa.debian.org/med-team/pydicom/-/commit/6bd0cda42321b24dc218bfa38c5f44c1880fc9b5
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/20200717/9a4b8f14/attachment.html>


More information about the debian-med-commit mailing list