From: yomguy Date: Tue, 10 Jan 2012 18:49:32 +0000 (+0100) Subject: fix test X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=5118d322db3f23446ccd4670ccbde54f5f6a74a2;p=telecaster-cgi.git fix test --- diff --git a/tests/push_webm.py b/tests/push_webm.py old mode 100755 new mode 100644 index 9ecd90c..8626aca --- a/tests/push_webm.py +++ b/tests/push_webm.py @@ -55,10 +55,10 @@ class Streamer(object): c.setopt(pycurl.URL, self.url) c.setopt(pycurl.UPLOAD, 1) #c.setopt(pycurl.READFUNCTION, FileReader(self.file).read_callback) - c.setopt(pycurl.READFUNCTION, RelayReader(self.relay).read_callback) #c.setopt(pycurl.READFUNCTION, self.file.read) - filesize = os.path.getsize(self.media) - c.setopt(pycurl.INFILESIZE, filesize) + c.setopt(pycurl.READFUNCTION, RelayReader(self.relay).read_callback) + #filesize = os.path.getsize(self.media) + #c.setopt(pycurl.INFILESIZE, filesize) c.perform() c.close()