]> git.parisson.com Git - telecaster-cgi.git/commitdiff
fix test
authoryomguy <yomguy@parisson.com>
Tue, 10 Jan 2012 18:49:32 +0000 (19:49 +0100)
committeryomguy <yomguy@parisson.com>
Tue, 10 Jan 2012 18:49:32 +0000 (19:49 +0100)
tests/push_webm.py [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 9ecd90c..8626aca
@@ -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()