From eda3da1db7b5fac263ff48d7e8eba1a7fefcf3fd Mon Sep 17 00:00:00 2001 From: vbanos Date: Sat, 28 Oct 2017 15:32:04 +0300 Subject: [PATCH] Unit test fix for Python2 compatibility --- tests/test_writer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_writer.py b/tests/test_writer.py index fa85616..8aedc7d 100644 --- a/tests/test_writer.py +++ b/tests/test_writer.py @@ -39,7 +39,7 @@ def test_warc_writer_locking(tmpdir, no_warc_open_suffix, lock_result): When we don't have the .open suffix, WarcWriter locks the file and the external process trying to ``lock_file`` fails (result=0). """ - dirname = os.path.dirname(tmpdir.mkdir('test-warc-writer')) + dirname = os.path.dirname(str(tmpdir.mkdir('test-warc-writer'))) wwriter = WarcWriter(Options(directory=dirname, no_warc_open_suffix=no_warc_open_suffix)) wwriter.write_records(recorded_url)