diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-09-02 12:13:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-02 12:13:39 (GMT) |
commit | 63fa113c6075e84546796c3876105bdae1439e26 (patch) | |
tree | 5d161fe2f8deb08ded3d58df8e6b2bafc01c592b | |
parent | e2977f6202de9226c4f72aeeb76f256709df9729 (diff) | |
download | cpython-63fa113c6075e84546796c3876105bdae1439e26.zip cpython-63fa113c6075e84546796c3876105bdae1439e26.tar.gz cpython-63fa113c6075e84546796c3876105bdae1439e26.tar.bz2 |
Fixed mistake in test for f-string error description (GH-22036) (GH-22059) (GH-22060)
(cherry picked from commit 749ed85e4446f548e22934931241f644a33d81ce)
Co-authored-by: han-solo <hanish0019@gmail.com>
Co-authored-by: han-solo <hanish0019@gmail.com>
-rw-r--r-- | Lib/test/test_format.py | 2 | ||||
-rw-r--r-- | Lib/test/test_fstring.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_format.py b/Lib/test/test_format.py index dff8c69..d2744cd 100644 --- a/Lib/test/test_format.py +++ b/Lib/test/test_format.py @@ -514,7 +514,7 @@ class FormatTest(unittest.TestCase): def test_with_an_underscore_and_a_comma_in_format_specifier(self): error_msg = re.escape("Cannot specify both ',' and '_'.") with self.assertRaisesRegex(ValueError, error_msg): - '{:,_}'.format(1) + '{:_,}'.format(1) if __name__ == "__main__": unittest.main() diff --git a/Lib/test/test_fstring.py b/Lib/test/test_fstring.py index 7432ae9..2ae815a 100644 --- a/Lib/test/test_fstring.py +++ b/Lib/test/test_fstring.py @@ -1227,7 +1227,7 @@ non-important content def test_with_an_underscore_and_a_comma_in_format_specifier(self): error_msg = re.escape("Cannot specify both ',' and '_'.") with self.assertRaisesRegex(ValueError, error_msg): - f'{1:,_}' + f'{1:_,}' if __name__ == '__main__': unittest.main() |