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

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

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