diff --git a/tests/enqueue_message_test.py b/tests/enqueue_message_test.py index c03160d..1bef40c 100644 --- a/tests/enqueue_message_test.py +++ b/tests/enqueue_message_test.py @@ -12,8 +12,8 @@ @pytest.fixture -def path_maildir(tmpdir): - return os.path.join(tmpdir, 'mailqueue') +def path_maildir(tmp_path): + return os.path.join(str(tmp_path), 'mailqueue') def test_can_create_missing_maildir_folders_before_enqueueing_message(path_maildir):