提交 87946ca0 编写于 作者: H Hou Tianze

Minor: uncomment testmanyfiles() in test.py for Python 3

上级 be7c9a23
......@@ -285,17 +285,16 @@ def createmanyfiles(dir, numFiles):
f.write(fname)
def testmanyfiles(by):
pass
# def testmanyfiles(by):
# numFiles = const.MaxListEntries * 2 + 10
# banner("Test uploading of many ({}) files".format(numFiles))
# with tempfile.TemporaryDirectory(prefix = 'bypytest_') as tmpdir:
# print("Testing temp dir: ", tmpdir)
# createmanyfiles(tmpdir, numFiles)
# by.upload(tmpdir, tmpdir)
# compare(by, tmpdir, tmpdir)
# mpr.empty()
if sys.version_info[0] == 3:
return
numFiles = const.MaxListEntries * 2 + 10
banner("Test uploading of many ({}) files".format(numFiles))
with tempfile.TemporaryDirectory(prefix = 'bypytest_') as tmpdir:
print("Testing temp dir: ", tmpdir)
createmanyfiles(tmpdir, numFiles)
by.upload(tmpdir, tmpdir)
compare(by, tmpdir, tmpdir)
mpr.empty()
def cleanup():
os.remove(zerofilename)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册