You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Tests/test_file.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -601,13 +601,13 @@ def test_modes(self):
601
601
withopen(fname, 'w') asx:
602
602
self.assertEqual(x.mode, 'w')
603
603
# don't allow empty modes
604
-
self.assertRaisesMessage(ValueError, 'must have exactly one of read/write/append mode'ifis_clielse"Must have exactly one of create/read/write/append mode and at most one plus", open, 'abc', '')
604
+
self.assertRaisesMessage(ValueError, "Must have exactly one of create/read/write/append mode and at most one plus", open, 'abc', '')
err_msg="mode U cannot be combined with 'x', 'w', 'a', or '+'"ifsys.version_info>= (3,7) else"mode U cannot be combined with x', 'w', 'a', or '+'"ifsys.version_info>= (3,6) else"can't use U and writing mode at once"
610
+
err_msg="mode U cannot be combined with 'x', 'w', 'a', or '+'"ifis_cliorsys.version_info>= (3,7) else"mode U cannot be combined with x', 'w', 'a', or '+'"ifsys.version_info>= (3,6) else"can't use U and writing mode at once"
0 commit comments