diff options
author | William Deegan <bill@baddogconsulting.com> | 2019-04-28 19:43:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-28 19:43:43 (GMT) |
commit | 35e6bbe16a859b42efca4592b435695a530f0717 (patch) | |
tree | 5a298b113bb1899e91583866b41eb9c337c0857e /test/Execute.py | |
parent | 44c7b81e1a47ff5d4439740b1e929ea723ee1f18 (diff) | |
parent | 4ecdcf07580b1bfcd03f7886b6ab9256ee825175 (diff) | |
download | SCons-35e6bbe16a859b42efca4592b435695a530f0717.zip SCons-35e6bbe16a859b42efca4592b435695a530f0717.tar.gz SCons-35e6bbe16a859b42efca4592b435695a530f0717.tar.bz2 |
Merge pull request #3345 from mwichmann/py38warns4-tests
[wip] Py38warns4 tests
Diffstat (limited to 'test/Execute.py')
-rw-r--r-- | test/Execute.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/Execute.py b/test/Execute.py index c40d0d0..9dcafac 100644 --- a/test/Execute.py +++ b/test/Execute.py @@ -36,7 +36,8 @@ test = TestSCons.TestSCons() test.write('my_copy.py', """\ import sys -open(sys.argv[2], 'wb').write(open(sys.argv[1], 'rb').read()) +with open(sys.argv[2], 'wb') as ofp, open(sys.argv[1], 'rb') as ifp: + ofp.write(ifp.read()) try: exitval = int(sys.argv[3]) except IndexError: |