File: 01_fix-refactored-PDFWriter-write.patch

package info (click to toggle)
pyth 0.5.6-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 312 kB
  • sloc: python: 1,609; makefile: 7
file content (23 lines) | stat: -rw-r--r-- 866 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: PDFWriter.write was refactored in git rev
 d87f7877cca5ea90c2d79979521a3db77c47eb30 loosing "method" argument
Author: Daniele Tricoli <eriol@mornie.org>
Forwarded: https://github.com/brendonh/pyth/pull/9
Last-Update: 2011-05-17
--- a/tests/test_writepdf.py
+++ b/tests/test_writepdf.py
@@ -80,13 +80,13 @@

     def test_latex(self):
         doc = PythonReader.read(P[u"the-text"])
-        pdf = PDFWriter.write(doc, method='latex').getvalue()
+        pdf = PDFWriter.write(doc).getvalue()
         html = self.pdf_to_html(pdf)
         assert "the-text" in html, html

     def test_rst(self):
         doc = PythonReader.read(P[u"the-text"])
-        pdf = PDFWriter.write(doc, method='rst').getvalue()
+        pdf = PDFWriter.write(doc).getvalue()
         print pdf
         html = self.pdf_to_html(pdf)
         assert "the-text" in html, html