| 1812 | """Test reading arguments from a file""" |
| 1813 | |
| 1814 | def setUp(self): |
| 1815 | super(TestArgumentsFromFile, self).setUp() |
| 1816 | file_texts = [ |
| 1817 | ('hello', os.fsencode(self.hello) + b'\n'), |
| 1818 | ('recursive', b'-a\n' |
| 1819 | b'A\n' |
| 1820 | b'@hello'), |
| 1821 | ('invalid', b'@no-such-path\n'), |
| 1822 | ('undecodable', self.undecodable + b'\n'), |
| 1823 | ] |
| 1824 | for path, text in file_texts: |
| 1825 | with open(path, 'wb') as file: |
| 1826 | file.write(text) |
| 1827 | |
| 1828 | parser_signature = Sig(fromfile_prefix_chars='@') |
| 1829 | argument_signatures = [ |