File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -58,3 +58,21 @@ def test_sourcepath_2(self, completion):
5858 """pathname expansion should not happen after splitting the argument by
5959 `:`"""
6060 assert not completion
61+
62+ @pytest .mark .complete ("javadoc -sourcepath java/a " )
63+ def test_packages_1 (self , completion ):
64+ assert completion == "c"
65+
66+ @pytest .mark .complete ("javadoc -sourcepath java/a x" )
67+ def test_packages_2 (self , completion ):
68+ assert not completion
69+
70+ @pytest .mark .complete (
71+ "javadoc -sourcepath java/a x" , shopt = dict (failglob = True )
72+ )
73+ def test_packages_3 (self , completion ):
74+ assert not completion
75+
76+ @pytest .mark .complete ("javadoc -sourcepath java/a " , env = dict (IFS = "a" ))
77+ def test_packages_4 (self , completion ):
78+ assert completion == "c"
You can’t perform that action at this time.
0 commit comments