Skip to content

Commit 6a62527

Browse files
committed
Replace more occurrences of .resolve() with .absolute(), also in tests
1 parent c5f7339 commit 6a62527

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

bin/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def _visualize_output(self, bar: BAR_TYPE) -> Optional[ExecResult]:
239239
return None
240240
return output_visualizer.run(
241241
self.in_path,
242-
self.testcase.ans_path.resolve(),
242+
self.testcase.ans_path.absolute(),
243243
self.out_path if not self.problem.interactive else None,
244244
self.feedbackdir,
245245
args=self.testcase.testdata_yaml_args(output_visualizer, bar),

test/test_default_output_validator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import util
1212
import config
1313

14-
RUN_DIR = Path.cwd().resolve()
14+
RUN_DIR = Path.cwd().absolute()
1515
# Note: the python version isn't tested by default, because it's quite slow.
1616
DEFAULT_OUTPUT_VALIDATOR = ["default_output_validator.cpp"]
1717

test/test_problem_yaml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import config
88
import problem
99

10-
RUN_DIR = Path.cwd().resolve()
10+
RUN_DIR = Path.cwd().absolute()
1111

1212
config.args.verbose = 2
1313
config.args.error = True

test/test_problems.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"constants",
2424
] + ["hellounix" if not util.is_mac() and not util.is_windows() else []]
2525

26-
RUN_DIR = Path.cwd().resolve()
26+
RUN_DIR = Path.cwd().absolute()
2727

2828

2929
@pytest.fixture(scope="class", params=PROBLEMS)

0 commit comments

Comments
 (0)