Merge pull request #5736 from wRAR/test-char-comment

Add a comment about `tmpname + '^'`.
This commit is contained in:
Andrey Rahmatullin 2022-11-25 18:19:51 +05:00 committed by GitHub
commit 3be7aa9a0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -109,6 +109,7 @@ class FileTestCase(unittest.TestCase):
def setUp(self):
self.tmpname = self.mktemp()
# add a special char to check that they are handled correctly
with open(self.tmpname + '^', 'w') as f:
f.write('0123456789')
handler = create_instance(FileDownloadHandler, None, get_crawler())