Skip to content

Commit e767745

Browse files
committed
Add python 3.12, fully resolve temporary directory
1 parent 1b0ef86 commit e767745

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ${{ matrix.os }}
1212
strategy:
1313
matrix:
14-
python-version: ['3.11', '3.10', '3.9', '3.8', '3.7']
14+
python-version: ['3.12', '3.11', '3.10', '3.9', '3.8', '3.7']
1515
os: [ubuntu-latest, windows-latest]
1616
steps:
1717
- uses: actions/checkout@v2

tests.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,13 @@ def test_symlink_to_another_directory(self):
188188
This test ensures that the issue is now fixed.
189189
"""
190190
with TemporaryDirectory() as project_dir, TemporaryDirectory() as another_dir:
191+
project_dir = Path(project_dir).resolve()
192+
another_dir = Path(another_dir).resolve()
191193
matches = _parse_gitignore_string('link', fake_base_dir=project_dir)
192194

193195
# Create a symlink to another directory.
194-
link = Path(project_dir, 'link')
195-
target = Path(another_dir, 'target')
196+
link = project_dir / 'link'
197+
target = another_dir / 'target'
196198
link.symlink_to(target)
197199

198200
# Check the intended behavior according to

0 commit comments

Comments
 (0)