Mercurial > ~astiob > upreckon > hgweb
diff test-svn.py @ 19:d4fc9341664e 1.20.2
Fixed an exception when tests.zip contained test cases in its root
author | Oleg Oshmyan <chortos@inbox.lv> |
---|---|
date | Sun, 13 Jun 2010 12:46:49 +0000 |
parents | c0e925ae721e |
children | 5bfa23cd638d |
line wrap: on
line diff
--- a/test-svn.py Mon Jun 07 23:42:16 2010 +0000 +++ b/test-svn.py Sun Jun 13 12:46:49 2010 +0000 @@ -342,8 +342,8 @@ if os.path.isfile('tests.zip'): if not os.path.isabs(target): f = zipfile.ZipFile('tests.zip') - m = f.getinfo(name) try: + m = f.getinfo(name) m.filename = target f.extract(m) f.close() @@ -967,4 +967,4 @@ if options.pause: print 'Press any key to exit... ', sys.stdout.flush() - os.system(pause + ' >' + os.devnull) \ No newline at end of file + os.system(pause + ' >' + os.devnull)