Skip to content

Commit e9e66ec

Browse files
mpsijmmzuenni
authored andcommitted
Replace more occurrences of .resolve() with .absolute(), also in tests
1 parent a03bf54 commit e9e66ec

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
@@ -241,7 +241,7 @@ def _visualize_output(self, bar: BAR_TYPE) -> Optional[ExecResult]:
241241
return None
242242
return output_visualizer.run(
243243
self.testcase.in_path,
244-
self.testcase.ans_path.resolve(),
244+
self.testcase.ans_path.absolute(),
245245
self.out_path if not self.problem.interactive else None,
246246
self.feedbackdir,
247247
args=self.testcase.test_case_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)