openbsd-ports/news/py-yenc/patches/patch-test_test_py
merdely 2a836a88ab Initial import of py-yenc-0.3
The yEnc module provide a simple API for doing raw encoding/decoding of
yencoded binaries, mainly for retrieving or posting to the usenet.  This
implementation is really simple and intended mainly as an exercise to
the author but is also significantly faster than any possible pure
Python implementation and it's being actually used by some Python nntp
clients out there.

From Mikko Tolmunen (MAINTAINER) with tweaks by Will Maier
ok simon@
2007-12-17 00:57:35 +00:00

12 lines
397 B
Plaintext

--- test/test.py.orig Thu Feb 19 01:11:46 2004
+++ test/test.py Tue Dec 11 19:36:46 2007
@@ -32,7 +32,7 @@ from binascii import crc32
from stat import *
def main():
- os.system("dd if=/dev/urandom of=sampledata bs=1M count=1")
+ os.system("dd if=/dev/urandom of=sampledata bs=1048576 count=1")
file_in = open("sampledata","r")
file_out = open("sampledata.out","w")
data = file_in.read()