Add a comment about `tmpname + '^'`.

This commit is contained in:
Andrey Rakhmatullin 2022-11-25 18:46:14 +06:00
parent b6e98ce6b6
commit f85c3f3d68
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())