This is not compatible with compgen but it is with bash itself: ls /usr/ .
(self)
| 90 | |
| 91 | @pytest.mark.skipif("sys.platform in ('win32', 'darwin')") |
| 92 | def test_remove_dir_prefix(self): |
| 93 | """This is not compatible with compgen but it is with bash itself: ls /usr/<TAB>.""" |
| 94 | from _pytest._argcomplete import FastFilesCompleter |
| 95 | |
| 96 | ffc = FastFilesCompleter() |
| 97 | fc = FilesCompleter() |
| 98 | for x in "/usr/".split(): |
| 99 | assert not equal_with_bash(x, ffc, fc, out=sys.stdout) |
nothing calls this directly
no test coverage detected