| 1713 | """Test reading arguments from a file""" |
| 1714 | |
| 1715 | def setUp(self): |
| 1716 | super(TestArgumentsFromFile, self).setUp() |
| 1717 | file_texts = [ |
| 1718 | ('hello', os.fsencode(self.hello) + b'\n'), |
| 1719 | ('recursive', b'-a\n' |
| 1720 | b'A\n' |
| 1721 | b'@hello'), |
| 1722 | ('invalid', b'@no-such-path\n'), |
| 1723 | ('undecodable', self.undecodable + b'\n'), |
| 1724 | ] |
| 1725 | for path, text in file_texts: |
| 1726 | with open(path, 'wb') as file: |
| 1727 | file.write(text) |
| 1728 | |
| 1729 | parser_signature = Sig(fromfile_prefix_chars='@') |
| 1730 | argument_signatures = [ |