diff options
Diffstat (limited to 'tests/test_self.py')
-rw-r--r-- | tests/test_self.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/test_self.py b/tests/test_self.py index 296d93e74..d843efe40 100644 --- a/tests/test_self.py +++ b/tests/test_self.py @@ -763,3 +763,18 @@ class TestRunTC: ], code=0, ) + + def test_can_list_directories_without_dunder_init(self, tmpdir): + test_directory = tmpdir / "test_directory" + test_directory.mkdir() + spam_module = test_directory / "spam.py" + spam_module.write("'Empty'") + + with tmpdir.as_cwd(): + self._runtest( + [ + "--disable=missing-docstring, missing-final-newline", + "test_directory", + ], + code=0, + ) |