@@ -162,16 +162,17 @@ def test_diff_unsafe_paths(self):
162
162
self .assertEqual (res [7 ].b_path , u'path/with-question-mark?' )
163
163
self .assertEqual (res [8 ].b_path , u'path/¯\\ _(ツ)_|¯' )
164
164
self .assertEqual (res [9 ].b_path , u'path/💩.txt' )
165
+ self .assertEqual (res [10 ].b_path , u'path/�-invalid-unicode-path.txt' )
165
166
166
167
# The "Moves"
167
168
# NOTE: The path prefixes a/ and b/ here are legit! We're actually
168
169
# verifying that it's not "a/a/" that shows up, see the fixture data.
169
- self .assertEqual (res [10 ].a_path , u'a/with spaces' ) # NOTE: path a/ here legit!
170
- self .assertEqual (res [10 ].b_path , u'b/with some spaces' ) # NOTE: path b/ here legit!
171
- self .assertEqual (res [11 ].a_path , u'a/ending in a space ' )
172
- self .assertEqual (res [11 ].b_path , u'b/ending with space ' )
173
- self .assertEqual (res [12 ].a_path , u'a/"with-quotes"' )
174
- self .assertEqual (res [12 ].b_path , u'b/"with even more quotes"' )
170
+ self .assertEqual (res [11 ].a_path , u'a/with spaces' ) # NOTE: path a/ here legit!
171
+ self .assertEqual (res [11 ].b_path , u'b/with some spaces' ) # NOTE: path b/ here legit!
172
+ self .assertEqual (res [12 ].a_path , u'a/ending in a space ' )
173
+ self .assertEqual (res [12 ].b_path , u'b/ending with space ' )
174
+ self .assertEqual (res [13 ].a_path , u'a/"with-quotes"' )
175
+ self .assertEqual (res [13 ].b_path , u'b/"with even more quotes"' )
175
176
176
177
def test_diff_patch_format (self ):
177
178
# test all of the 'old' format diffs for completness - it should at least
0 commit comments