Source: xhtml2pdf
Version: 0.2.15+dfsg-1
Severity: serious
Tags: sid trixie ftbfs

xhtml2pdf accesses network resources during the build:

======================================================================
FAIL: test_document_cannot_identify_image 
(tests.test_document.DocumentTest.test_document_cannot_identify_image)
Test that images which cannot be identified don't cause stack trace to be 
printed
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/build/package/package/.pybuild/cpython3_3.11_xhtml2pdf/build/tests/test_document.py",
 line 189, in test_document_cannot_identify_image
    self.assertEqual(
AssertionError: Lists differ: ['WAR[16 chars]ags:Could not get image data from 
src attribut[265 chars]>\''] != ['WAR[16 chars]ags:Cannot identify image 
file:\n\'<img src="h[124 chars]>\'']

First differing element 0:
'WARN[15 chars]ags:Could not get image data from src attribut[264 chars]/>\''
'WARN[15 chars]ags:Cannot identify image file:\n\'<img src="h[123 chars]/>\''

+ ['WARNING:xhtml2pdf.tags:Cannot identify image file:\n'
- ['WARNING:xhtml2pdf.tags:Could not get image data from src attribute: '
-  
'https://raw.githubusercontent.com/python-pillow/Pillow/7921da54a73dd4a30c23957369b79cda176005c6/Tests/images/zero_width.gif\n'
   "'<img "
   
'src="https://raw.githubusercontent.com/python-pillow/Pillow/7921da54a73dd4a30c23957369b79cda176005c6/Tests/images/zero_width.gif"/>\'']

======================================================================
FAIL: test_document_with_broken_image 
(tests.test_document.DocumentTest.test_document_with_broken_image)
Test that broken images don't cause unhandled exception
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/build/package/package/.pybuild/cpython3_3.11_xhtml2pdf/build/tests/test_document.py",
 line 169, in test_document_with_broken_image
    self.assertEqual(
AssertionError: Lists differ: [] != 
["WARNING:xhtml2pdf.xhtml2pdf_reportlab:SV[151 chars]ml'"]

Second list contains 1 additional elements.
First extra element 0:
"WARNING:xhtml2pdf.xhtml2pdf_reportlab:SVG drawing could not be resized: 
'https://raw.githubusercontent.com/xhtml2pdf/xhtml2pdf/b01b1d8f9497dedd0f2454409d03408bdeea997c/tests/samples/images.html'"

- []
+ ['WARNING:xhtml2pdf.xhtml2pdf_reportlab:SVG drawing could not be resized: '
+  
"'https://raw.githubusercontent.com/xhtml2pdf/xhtml2pdf/b01b1d8f9497dedd0f2454409d03408bdeea997c/tests/samples/images.html'"]

Reply via email to