Skip to content

Commit ef53edb

Browse files
committed
Added tests for --recursive option
1 parent 9b23124 commit ef53edb

File tree

7 files changed

+12
-0
lines changed

7 files changed

+12
-0
lines changed

tests/regrtest_data/directory/package/__init__.py

Whitespace-only changes.

tests/regrtest_data/directory/package/module.py

Whitespace-only changes.

tests/regrtest_data/directory/package/subpackage/__init__.py

Whitespace-only changes.

tests/regrtest_data/directory/package/subpackage/module.py

Whitespace-only changes.

tests/regrtest_data/directory/subdirectory/module.py

Whitespace-only changes.

tests/regrtest_data/directory/subdirectory/subsubdirectory/module.py

Whitespace-only changes.

tests/test_self.py

+12
Original file line numberDiff line numberDiff line change
@@ -1290,3 +1290,15 @@ def test_regex_paths_csv_validator() -> None:
12901290
with pytest.raises(SystemExit) as ex:
12911291
Run(["--ignore-paths", "test", join(HERE, "regrtest_data", "empty.py")])
12921292
assert ex.value.code == 0
1293+
1294+
def test_regression_recursive(self):
1295+
self._test_output(
1296+
[join(HERE, "regrtest_data", "directory", "subdirectory")],
1297+
expected_output="No such file or directory",
1298+
)
1299+
1300+
def test_recursive(self):
1301+
self._runtest(
1302+
[join(HERE, "regrtest_data", "directory", "subdirectory"), "--recursive"],
1303+
code=0,
1304+
)

0 commit comments

Comments
 (0)