Skip to content

Commit caf8496

Browse files
committed
Remove the '\\' from the test sample as this the '\' in windows is not an invalid character but a path separator.
In addition, since no system can have the character '\' as in the filename, it'll be safe to remove this from the test case.
1 parent 6d49404 commit caf8496

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

about_code_tool/tests/test_about.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,18 +152,19 @@ def test_valid_chars_in_file_name(self):
152152

153153
def test_invalid_chars_in_file_name(self):
154154
about_obj = about.AboutFile()
155-
invalid = about_obj.invalid_chars_in_about_file_name('_$as/afg\\:')
156-
self.assertEqual(['\\', ':'], invalid)
155+
invalid = about_obj.invalid_chars_in_about_file_name('_$as/afg:')
156+
self.assertEqual([':'], invalid)
157157

158158
def test_invalid_chars_in_file_name_path(self):
159159
about_obj = about.AboutFile()
160160
invalid = about_obj.invalid_chars_in_about_file_name('%6571351()275612$/_$asafg:/\\')
161-
self.assertEqual(['\\', ], invalid)
161+
print(invalid)
162+
self.assertEqual([], invalid)
162163

163164
def test_invalid_chars_in_file_name_path2(self):
164165
about_obj = about.AboutFile()
165-
invalid = about_obj.invalid_chars_in_about_file_name('%6571351()275612$_$asafg:\\')
166-
self.assertEqual(['%', '(', ')', '$', '$', ':', '\\', ], invalid)
166+
invalid = about_obj.invalid_chars_in_about_file_name('%6571351()275612$_$asafg:')
167+
self.assertEqual(['%', '(', ')', '$', '$', ':', ], invalid)
167168

168169
def test_invalid_space_in_file_name(self):
169170
about_obj = about.AboutFile()

0 commit comments

Comments
 (0)