Skip to content

Commit 1e538fa

Browse files
committed
Add failing test case for #1422
Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent 263849f commit 1e538fa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/scancode/test_resource.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ def test_walk_defaults(self):
6464
]
6565
assert expected == [(r.name, r.is_file) for r in results]
6666

67+
def test_Codebase_with_only_ignores_should_not_faild_to_create(self):
68+
test_codebase = self.get_temp_dir()
69+
create_dir(join(test_codebase, 'sccs', 'a'))
70+
create_dir(join(test_codebase, 'rcs', 'b'))
71+
Codebase(test_codebase)
72+
6773
def test_walk_topdown(self):
6874
test_codebase = self.get_test_loc('resource/codebase')
6975
codebase = Codebase(test_codebase)

0 commit comments

Comments
 (0)