pull/58/head
parent
f2b0650ad5
commit
7055862eaf
|
@ -175,7 +175,7 @@ def stream_value(x):
|
|||
if not isinstance(x, PDFStream):
|
||||
if settings.STRICT:
|
||||
raise PDFTypeError('PDFStream required: %r' % x)
|
||||
return PDFStream({}, '')
|
||||
return PDFStream({}, b'')
|
||||
return x
|
||||
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -18,7 +18,6 @@ def run(datapath,filename,options=None):
|
|||
pdf2txt.main(s.split(' ')[1:])
|
||||
|
||||
class TestDumpPDF():
|
||||
|
||||
|
||||
def test_1(self):
|
||||
run('../samples/','jo')
|
||||
|
@ -41,5 +40,8 @@ class TestDumpPDF():
|
|||
def test_6(self):
|
||||
run('../samples/nonfree/','naacl06-shinyama')
|
||||
|
||||
def test_7(self):
|
||||
run('../samples/contrib/','stamp-no')
|
||||
|
||||
if __name__ == '__main__':
|
||||
nose.runmodule()
|
||||
|
|
Loading…
Reference in New Issue