gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] gzz/test/gzz/mediaserver util.test


From: Vesa Kaihlavirta
Subject: [Gzz-commits] gzz/test/gzz/mediaserver util.test
Date: Wed, 16 Oct 2002 05:41:14 -0400

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Vesa Kaihlavirta <address@hidden>       02/10/16 05:40:49

Modified files:
        test/gzz/mediaserver: util.test 

Log message:
        Optimized and clarified a bit.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/test/gzz/mediaserver/util.test.diff?tr1=1.2&tr2=1.3&r1=text&r2=text

Patches:
Index: gzz/test/gzz/mediaserver/util.test
diff -c gzz/test/gzz/mediaserver/util.test:1.2 
gzz/test/gzz/mediaserver/util.test:1.3
*** gzz/test/gzz/mediaserver/util.test:1.2      Tue Oct 15 16:18:13 2002
--- gzz/test/gzz/mediaserver/util.test  Wed Oct 16 05:40:49 2002
***************
*** 20,27 ****
      tmpname = tempfile.mktemp()
      util.stripBlock(blockname, tmpname)
      print 'Stripped'
-     tmpfile = open(tmpname, 'rb')
      hash = md5.new()
!     for line in xreadlines.xreadlines(tmpfile):
!         hash.update(line)
      failUnlessEqual(hash.hexdigest(), "711be4dc69c602546b132c4fae3ab7f2")
--- 20,25 ----
      tmpname = tempfile.mktemp()
      util.stripBlock(blockname, tmpname)
      print 'Stripped'
      hash = md5.new()
!     hash.update(open(tmpname, 'rb').read())
      failUnlessEqual(hash.hexdigest(), "711be4dc69c602546b132c4fae3ab7f2")




reply via email to

[Prev in Thread] Current Thread [Next in Thread]