@@ -162,16 +162,17 @@ def test_diff_unsafe_paths(self):
162162 self .assertEqual (res [7 ].b_path , u'path/with-question-mark?' )
163163 self .assertEqual (res [8 ].b_path , u'path/¯\\ _(ツ)_|¯' )
164164 self .assertEqual (res [9 ].b_path , u'path/💩.txt' )
165+ self .assertEqual (res [10 ].b_path , u'path/�-invalid-unicode-path.txt' )
165166
166167 # The "Moves"
167168 # NOTE: The path prefixes a/ and b/ here are legit! We're actually
168169 # 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"' )
175176
176177 def test_diff_patch_format (self ):
177178 # test all of the 'old' format diffs for completness - it should at least
0 commit comments