]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/t/thelpers.py
txstat: fix for python 3
[bup.git] / lib / bup / t / thelpers.py
index d9f470480f142d5ec10e33a22b34e4ed936fcaa6..501e8beb6d3f570c43f90e33c18f1c868f46c5af 100644 (file)
@@ -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')