Skip to content

Commit 01a474f

Browse files
committed
windows fix for real this time
1 parent abe2f63 commit 01a474f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_date_introspection.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import os
2+
13
import pytest
24

35
from aocd.exceptions import AocdError
@@ -64,7 +66,8 @@ def test_ipynb_fail_no_numbers_in_ipynb_filename(mocker):
6466

6567

6668
def test_no_numbers_in_py_filename_but_date_in_abspath(mocker):
67-
fake_stack = [("adventofcode/2022/02/main.py", 1, "<test>", "from aocd import data")]
69+
fname = os.sep.join(["adventofcode", "2022", "02", "main.py"])
70+
fake_stack = [(fname, 1, "<test>", "from aocd import data")]
6871
mocker.patch("aocd.get.traceback.extract_stack", return_value=fake_stack)
6972
day, year = get_day_and_year()
7073
assert day == 2

0 commit comments

Comments
 (0)