Skip to content

Commit 11e7e13

Browse files
committed
-
1 parent 5930082 commit 11e7e13

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

source_py2/test_python_toolbox/test_zip_tools/test_zip_folder.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33

44
from python_toolbox import cute_testing
55
from python_toolbox import temp_file_tools
6+
try:
7+
import pathlib
8+
except:
9+
from python_toolbox.third_party import pathlib
10+
611

712
from 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)

0 commit comments

Comments
 (0)