Skip to content

Commit

Permalink
Make test_git_archive_all importable by Python 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kentzo committed Aug 14, 2018
1 parent d0cf63e commit ddd6028
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test_git_archive_all.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-

from copy import deepcopy
import errno
from functools import partial
Expand Down Expand Up @@ -183,13 +185,13 @@ def archive(self, path):

unicode_base = deepcopy(base)
unicode_base['data'] = DirRecord({
'مرحبا بالعالم.dat': FileRecord('Special cases aren\'t special enough to break the rules.')
u'مرحبا بالعالم.dat': FileRecord('Special cases aren\'t special enough to break the rules.')
})

unicode_quoted = deepcopy(base)
unicode_quoted['data'] = DirRecord({
'\"مرحبا بالعالم.dat\"': FileRecord('Special cases aren\'t special enough to break the rules.'),
'\'привет мир.dat\'': FileRecord('Although practicality beats purity.')
u'\"مرحبا بالعالم.dat\"': FileRecord('Special cases aren\'t special enough to break the rules.'),
u'\'привет мир.dat\'': FileRecord('Although practicality beats purity.')
})


Expand Down

0 comments on commit ddd6028

Please sign in to comment.