Package: pydicom / 2.0.0-1

deb_no_unicode Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
From: Yaroslav Halchenko <debian@onerussian.com>
Subject: Disable Unicode filenames handling 
 Unicode+Python in a minimal debian env without locales
 configured and code insisting on non-ascii encodable filenames
 is the task for masocists.. thus  cheated for today
Bug-Debian: http://bugs.debian.org/
Bug-Ubuntu: https://launchpad.net/bugs/
Last-Update: 2018-06-25

--- a/pydicom/tests/test_gdcm_pixel_data.py
+++ b/pydicom/tests/test_gdcm_pixel_data.py
@@ -107,7 +107,7 @@ save_dir = os.getcwd()
 class TestGDCM_JPEG_LS_no_gdcm:
     def setup(self):
         self.unicode_filename = os.path.join(
-            tempfile.gettempdir(), "ДИКОМ.dcm")
+            tempfile.gettempdir(), "DICOM.dcm")
         shutil.copyfile(jpeg_ls_lossless_name, self.unicode_filename)
         self.jpeg_ls_lossless = dcmread(self.unicode_filename)
         self.mr_small = dcmread(mr_name)
@@ -389,7 +389,7 @@ class TestsWithGDCM:
     @pytest.fixture(scope='class')
     def unicode_filename(self):
         unicode_filename = os.path.join(
-            tempfile.gettempdir(), "ДИКОМ.dcm")
+            tempfile.gettempdir(), "DICOM.dcm")
         shutil.copyfile(jpeg_ls_lossless_name, unicode_filename)
         yield unicode_filename
         os.remove(unicode_filename)
--- a/pydicom/tests/test_filereader.py
+++ b/pydicom/tests/test_filereader.py
@@ -112,7 +112,7 @@ class TestReader:
         assert empty_number_tags_ds.VectorGridData is None
 
     def test_UTF8_filename(self):
-        utf8_filename = os.path.join(tempfile.gettempdir(), "ДИКОМ.dcm")
+        utf8_filename = os.path.join(tempfile.gettempdir(), "DICOM.dcm")
         shutil.copyfile(rtdose_name, utf8_filename)
         ds = dcmread(utf8_filename)
         os.remove(utf8_filename)