1501
1501
for _, scenario in EncodingAdapter.encoding_scenarios:
1502
1502
encoding = scenario['encoding']
1504
1504
filename = scenario['info']['filename']
1506
1506
self.overrideAttr(diffobj, '_fenc', lambda: encoding)
1507
1507
relpath = dirname + u'/' + filename
1508
1508
fullpath = diffobj._safe_filename('safe', relpath)
1515
1513
def test_unencodable_filename(self):
1516
1514
diffobj = diff.DiffFromTool(['dummy', '@old_path', '@new_path'],
1518
1516
for _, scenario in EncodingAdapter.encoding_scenarios:
1519
1517
encoding = scenario['encoding']
1521
1519
filename = scenario['info']['filename']
1523
1521
if encoding == 'iso-8859-1':