Changeset 4e41144 in trunk
- Timestamp:
- 2020-12-23T14:14:06Z (4 years ago)
- Branches:
- master
- Children:
- 1bdca90, 2c7dde9, 574613a, 5a543fd
- Parents:
- f9ee4b23 (diff), 0133889 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - git-author:
- Itamar Turner-Trauring <itamar@…> (2020-12-23 14:14:06)
- git-committer:
- GitHub <noreply@…> (2020-12-23 14:14:06)
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/allmydata/test/test_system.py ¶
rf9ee4b23 r4e41144 2328 2328 data = "data to be uploaded: file%d\n" % i 2329 2329 datas.append(data) 2330 open(fn,"wb").write(data) 2330 with open(fn, "wb") as f: 2331 f.write(data) 2331 2332 2332 2333 def _check_stdout_against(out_and_err, filenum=None, data=None): … … 2506 2507 dn = os.path.join(self.basedir, "dir1") 2507 2508 os.makedirs(dn) 2508 open(os.path.join(dn, "rfile1"), "wb").write("rfile1") 2509 open(os.path.join(dn, "rfile2"), "wb").write("rfile2") 2510 open(os.path.join(dn, "rfile3"), "wb").write("rfile3") 2509 with open(os.path.join(dn, "rfile1"), "wb") as f: 2510 f.write("rfile1") 2511 with open(os.path.join(dn, "rfile2"), "wb") as f: 2512 f.write("rfile2") 2513 with open(os.path.join(dn, "rfile3"), "wb") as f: 2514 f.write("rfile3") 2511 2515 sdn2 = os.path.join(dn, "subdir2") 2512 2516 os.makedirs(sdn2) 2513 open(os.path.join(sdn2, "rfile4"), "wb").write("rfile4") 2514 open(os.path.join(sdn2, "rfile5"), "wb").write("rfile5") 2517 with open(os.path.join(sdn2, "rfile4"), "wb") as f: 2518 f.write("rfile4") 2519 with open(os.path.join(sdn2, "rfile5"), "wb") as f: 2520 f.write("rfile5") 2515 2521 2516 2522 # from disk into tahoe
Note: See TracChangeset
for help on using the changeset viewer.