comparison Tests/CheckZipStreams.py @ 610:ec657d1a62a6 Orthanc-1.12.3

fix compatibility with python3
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 31 Jan 2024 12:18:20 +0100
parents 933fe1bbce4f
children 9f8276ac1cdd
comparison
equal deleted inserted replaced
609:a8e49d30f634 610:ec657d1a62a6
1 #!/usr/bin/python2.7 1 #!/usr/bin/env python3
2 2
3 # Orthanc - A Lightweight, RESTful DICOM Store 3 # Orthanc - A Lightweight, RESTful DICOM Store
4 # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics 4 # Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
5 # Department, University Hospital of Liege, Belgium 5 # Department, University Hospital of Liege, Belgium
6 # Copyright (C) 2017-2023 Osimis S.A., Belgium 6 # Copyright (C) 2017-2023 Osimis S.A., Belgium
134 print('ok, got corrupted archive') 134 print('ok, got corrupted archive')
135 queue.put(True) 135 queue.put(True)
136 136
137 except Exception as e: 137 except Exception as e:
138 Assert(streaming == False) 138 Assert(streaming == False)
139 Assert(e[0] == 500) # HTTP status code 500 139 Assert(e.args[0] == 500) # HTTP status code 500
140 print('ok, got none archive') 140 print('ok, got none archive')
141 queue.put(True) 141 queue.put(True)
142 142
143 def cancel(): 143 def cancel():
144 while True: 144 while True: