Skip to content

Commit 11e004a

Browse files
committed
Fix subprocess runner so it runs
1 parent 9dfc62a commit 11e004a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

TestRunner/GenericTestRunner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def __init__(self, _code, _test) -> None:
2222

2323
def run(self, *args, **kwargs) -> (int, str):
2424
# TODO: check that code_dir and test_dir exist
25-
proc = subprocess.run(["pytest", self.test_dir], capture_output=True)
25+
proc = subprocess.run(["pytest", self.test_dir], capture_output=True, universal_newlines=True)
2626
return proc.returncode, proc.stdout
2727

2828

test/test_ExampleClass.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import pytest
2-
import generated
2+
import generated.test_class
33

44

55
@pytest.mark.parametrize("num1, num2, expected1, expected2", [

0 commit comments

Comments
 (0)