Search
j0ke.net Open Build Service
>
Projects
>
devel
:
python
>
python-ReportLab
> remove_http_tests.diff
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File remove_http_tests.diff of Package python-ReportLab
--- tests/test_lib_utils.py +++ tests/test_lib_utils.py @@ -108,11 +108,6 @@ "test open and read of a relative file: URL" b = _rel_open_and_read('file:../docs/images/Edit_Prefs.gif') - def test9(self): - "test open and read of an http: URL" - from reportlab.lib.utils import open_and_read - b = open_and_read('http://www.reportlab.com/rsrc/encryption.gif') - def test10(self): "test open and read of a simple relative file" from reportlab.lib.utils import open_and_read, getStringIO --- tests/test_platypus_general.py +++ tests/test_platypus_general.py @@ -318,10 +318,6 @@ code(''' story.append(platypus.Image('%s'))'''% getFurl(_GIFUTF8)) code(''' story.append(platypus.Image(open_for_read('%s','b')))''' % _GIFUTF8) story.append(FrameBreak()) - story.append(Paragraph("""Images can even be obtained from the internet.""", styleSheet['BodyText'])) - code(''' img = platypus.Image('http://www.reportlab.com/rsrc/encryption.gif') - story.append(img)''') - story.append(FrameBreak()) if _JPG: story.append(Paragraph("""JPEGs are a native PDF image format. They should be available even if PIL cannot be used.""", styleSheet['BodyText'])) @@ -498,13 +498,6 @@ story.append(Paragraph("Here is an Image flowable obtained from an open file.",styleSheet['Italic'])) story.append(platypus.Image(open_for_read(_GIF,'b'))) story.append(FrameBreak()) - try: - img = platypus.Image('http://www.reportlab.com/rsrc/encryption.gif') - story.append(Paragraph("Here is an Image flowable obtained from a string http url.",styleSheet['Italic'])) - story.append(img) - except: - story.append(Paragraph("The image could not be obtained from a string http url.",styleSheet['Italic'])) - story.append(FrameBreak()) if _JPG: img = platypus.Image(_JPG)