Mercurial > hg > orthanc-tests
diff Tests/Tests.py @ 543:8722f7f95a38
fix
author | Alain Mazy <am@osimis.io> |
---|---|
date | Tue, 20 Jun 2023 17:24:56 +0200 |
parents | ea1003982c27 |
children | 7de5fd295025 |
line wrap: on
line diff
--- a/Tests/Tests.py Mon Jun 19 21:15:48 2023 +0200 +++ b/Tests/Tests.py Tue Jun 20 17:24:56 2023 +0200 @@ -6737,7 +6737,7 @@ f1 = '/tmp/GETSCU/MR.1.3.46.670589.11.0.0.11.4.2.0.8743.5.5396.2006120114314079549' self.assertTrue(os.path.isfile(f1)) with open(f1, 'rb') as f: - self.assertEqual('1.2.840.10008.1.2.1', GetTransferSyntax(f.read())) + self.assertEqual('1.2.840.10008.1.2.1', GetTransferSyntax(f.read(), encoding='ISO-8859-1')) CleanTarget() @@ -6757,7 +6757,7 @@ self.assertTrue(os.path.isfile(f1)) with open(f1, 'rb') as f: - self.assertEqual('1.2.840.10008.1.2.1', GetTransferSyntax(f.read())) + self.assertEqual('1.2.840.10008.1.2.1', GetTransferSyntax(f.read(), encoding='ISO-8859-1')) # This file is transcoded from "1.2.840.10008.1.2.4.50" to "1.2.840.10008.1.2.1" # (LittleEndianExplicit is proposed by default by "getscu")