X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=bup.git;a=blobdiff_plain;f=lib%2Fbup%2Ft%2Fthelpers.py;h=501e8beb6d3f570c43f90e33c18f1c868f46c5af;hp=d9f470480f142d5ec10e33a22b34e4ed936fcaa6;hb=544208fae44dfeaccb626c16f3a5c387f318d08f;hpb=d70973030d0c98d8024d206dc6430887dbfd5828 diff --git a/lib/bup/t/thelpers.py b/lib/bup/t/thelpers.py index d9f4704..501e8be 100644 --- a/lib/bup/t/thelpers.py +++ b/lib/bup/t/thelpers.py @@ -143,8 +143,8 @@ def test_batchpipe(): @wvtest def test_atomically_replaced_file(): with no_lingering_errors(): - with test_tempdir('bup-thelper-') as tmpdir: - target_file = os.path.join(tmpdir, 'test-atomic-write') + with test_tempdir(b'bup-thelper-') as tmpdir: + target_file = os.path.join(tmpdir, b'test-atomic-write') with atomically_replaced_file(target_file, mode='w') as f: f.write('asdf')