File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
source_py2/test_python_toolbox/test_zip_tools Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 33
44from python_toolbox import cute_testing
55from python_toolbox import temp_file_tools
6+ try :
7+ import pathlib
8+ except :
9+ from python_toolbox .third_party import pathlib
10+
611
712from python_toolbox import zip_tools
813
@@ -15,9 +20,9 @@ def test():
1520 folder_to_zip .mkdir ()
1621 assert isinstance (folder_to_zip , pathlib .Path )
1722
18- (folder_to_zip / 'some_file.txt' ).open ('w' ).write ('hello there!' )
23+ (folder_to_zip / 'some_file.txt' ).open ('w' ).write (u 'hello there!' )
1924 (folder_to_zip / 'some_other_file.txt' ).open ('w' ).write (
20- 'hello there again!' )
25+ u 'hello there again!' )
2126
2227 zip_file_path = temp_folder / 'archive.zip'
2328 assert isinstance (zip_file_path , pathlib .Path )
You can’t perform that action at this time.
0 commit comments