Skip to content

Commit 7dfc6b8

Browse files
committed
Merge branch 'test-pathlib'
2 parents 57aeda2 + d1d579a commit 7dfc6b8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
import pytest
44
import shlex
55
import os
6-
import py.path
76
import sys
87
import tempfile
98
import textwrap
109
import subprocess
1110
import traceback
11+
from pathlib import Path
1212
from gitrevise.odb import Repository
1313
from gitrevise.utils import sh_path
1414
from contextlib import contextmanager
@@ -67,7 +67,7 @@ def repo(hermetic_seal):
6767
@pytest.fixture
6868
def short_tmpdir():
6969
with tempfile.TemporaryDirectory() as tdir:
70-
yield py.path.local(tdir)
70+
yield Path(tdir)
7171

7272

7373
@contextmanager

tests/test_gpgsign.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def test_gpgsign(repo, short_tmpdir, monkeypatch):
2626
monkeypatch.setenv("GNUPGHOME", str(gnupghome))
2727

2828
gnupghome.chmod(0o700)
29-
(gnupghome / "gpg.conf").write("pinentry-mode loopback")
29+
(gnupghome / "gpg.conf").write_text("pinentry-mode loopback")
3030
user_ident = repo.default_author.signing_key
3131
sh_run(
3232
["gpg", "--batch", "--passphrase", "", "--quick-gen-key", user_ident],

0 commit comments

Comments
 (0)