Changeset 4e41144 in trunk


Ignore:
Timestamp:
2020-12-23T14:14:06Z (4 years ago)
Author:
GitHub <noreply@…>
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)
Message:

Merge pull request #944 from tahoe-lafs/3572.pypy-has-no-refcounting

Fix intermittent failing test on PyPy?

Fixes ticket:3572

Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/allmydata/test/test_system.py

    rf9ee4b23 r4e41144  
    23282328            data = "data to be uploaded: file%d\n" % i
    23292329            datas.append(data)
    2330             open(fn,"wb").write(data)
     2330            with open(fn, "wb") as f:
     2331                f.write(data)
    23312332
    23322333        def _check_stdout_against(out_and_err, filenum=None, data=None):
     
    25062507        dn = os.path.join(self.basedir, "dir1")
    25072508        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")
    25112515        sdn2 = os.path.join(dn, "subdir2")
    25122516        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")
    25152521
    25162522        # from disk into tahoe
Note: See TracChangeset for help on using the changeset viewer.