Skip to content

Commit

Permalink
#413 Do not test Mac as a special case for unicode names in tar.
Browse files Browse the repository at this point in the history
 * Mac and Linux behavior are now the same thanks to the new path
   unicode transliteration

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
  • Loading branch information
pombredanne committed Jan 7, 2017
1 parent cedda47 commit 581bcfc
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions tests/extractcode/test_archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -1024,37 +1024,6 @@ def test_extract_python_testtar_tar_archive_with_special_files(self):
'ustar/sparse',
'ustar/umlauts-AOUaouss'
]
if on_mac:
# the pure Python tar behaves a tad differently on Mac
# some unicode characters are URL/"percent"-encoded instead
expected = [
'gnu/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/longname',
'gnu/regtype-gnu-uid',
'gnu/sparse',
'gnu/sparse-0.0',
'gnu/sparse-0.1',
'gnu/sparse-1.0',
'misc/eof',
'misc/regtype-hpux-signed-chksum-%C4%D6%DC%E4%F6%FC%DF',
'misc/regtype-old-v7',
'misc/regtype-old-v7-signed-chksum-%C4%D6%DC%E4%F6%FC%DF',
'misc/regtype-suntar',
'misc/regtype-xstar',
'pax/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/123/longname',
'pax/hdrcharset-%E4%F6%FC',
'pax/regtype1',
'pax/regtype2',
'pax/regtype3',
'pax/regtype4',
'pax/regtype4_1',
'pax/umlauts-A\xcc\x88O\xcc\x88U\xcc\x88a\xcc\x88o\xcc\x88u\xcc\x88\xc3\x9f',
'ustar/12345/12345/12345/12345/12345/12345/12345/12345/12345/12345/12345/12345/12345/12345/12345/12345/12345/12345/12345/12345/12345/12345/12345/12345/12345/12345/12345/12345/12345/12345/12345/12345/12345/12345/12345/12345/12345/12345/12345/1234567/longname',
'ustar/conttype',
'ustar/linktest1/regtype',
'ustar/regtype',
'ustar/sparse',
'ustar/umlauts-%C4%D6%DC%E4%F6%FC%DF'
]
check_files(test_dir, expected)


Expand Down

0 comments on commit 581bcfc

Please sign in to comment.