]> arthur.barton.de Git - bup.git/blobdiff - buptest.py
index: remove vestigial buffer and sys imports
[bup.git] / buptest.py
index dd145eed2d467b0170396849f04f062cebf7b180..a50387212c5a8a68dbcc992d6db8079aa9cd3c42 100644 (file)
@@ -2,7 +2,7 @@
 from __future__ import absolute_import, print_function
 from collections import namedtuple
 from contextlib import contextmanager
-from os.path import basename, dirname, realpath
+from os.path import abspath, basename, dirname, realpath
 from pipes import quote
 from subprocess import PIPE, Popen
 from traceback import extract_stack
@@ -33,7 +33,7 @@ def no_lingering_errors():
 
 
 # Assumes (of course) this file is at the top-level of the source tree
-_bup_tmp = realpath(dirname(__file__) + '/t/tmp')
+_bup_tmp = realpath(dirname(__file__.encode('iso-8859-1')) + b'/t/tmp')
 try:
     os.makedirs(_bup_tmp)
 except OSError as e: