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