[reportlab-users] Possible glitch in recently added test

Lele Gaifax lele at metapensiero.it
Wed Apr 14 08:26:26 EDT 2021


Hi,

browsing latest changes, I see the following

diff --git a/tests/test_pdfgen_general.py b/tests/test_pdfgen_general.py
index 3db17503..5b76521f 100644
--- a/tests/test_pdfgen_general.py
+++ b/tests/test_pdfgen_general.py
@@ -1247,6 +1247,30 @@ def testOSFile(self):
         c.showPage()
         c.save()
 
+    def testSpooledTemporarySaves(self):
+        return
+        from tempfile import SpooledTemporaryFile
+        with SpooledTemporaryFile() as f:
+            c = canvas.Canvas(f)
+            c.drawString(100, 700, 'Hello World I write to %s' % repr(f))
+            c.showPage()
+            c.save()

That early "return" seems a leftover, isn't it?

ciao, lele.
-- 
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
lele at metapensiero.it  |                 -- Fortunato Depero, 1929.



More information about the reportlab-users mailing list