Update of /cvsroot/monetdb/pathfinder/tests/BugTracker/Tests
In directory 
23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv4134/tests/BugTracker/Tests

Added Files:
        ancestor-or-self.SF-2636285.unpack_doc.py 
Log Message:
propagated changes of Thursday Apr 02 2009 - Friday Apr 03 2009
from the Feb2009 branch to the development trunk

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2009/04/02 - stmane:
        tests/BugTracker/Tests/ancestor-or-self.SF-2636285.unpack_doc.py,1.1.2.1

added test for
ID: 2636285 "ancestor-or-self: illegal data in size column or context lis"
https://sourceforge.net/tracker/?func=detail&aid=2636285&group_id=56967&atid=482468

appears to work fine
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


--- NEW FILE: ancestor-or-self.SF-2636285.unpack_doc.py ---
import zipfile, os

archive = 'ancestor-or-self.SF-2636285.unpack_doc.zip'

def mkpardir(path):
    i = path.find('/')
    d = ''
    while i >= 0:
        d = os.path.join(d, path[:i])
        if not os.path.exists(d):
            os.mkdir(d)
        path = path[i + 1:]
        i = path.find('/')

z = zipfile.ZipFile(archive)
print 'Archive:  %s' % archive
for name in z.namelist():
    print '  inflating: %s' % name
    mkpardir(name)
    data = z.read(name)
    f = open(name, 'wb')
    f.write(data)
    f.close()


------------------------------------------------------------------------------
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to