MCPcopy Index your code
hub / github.com/python/cpython / test_with_two_commas_in_format_specifier

Method test_with_two_commas_in_format_specifier

Lib/test/test_fstring.py:1699–1702  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1697 compile("f'{a $ b}'", "?", "exec")
1698
1699 def test_with_two_commas_in_format_specifier(self):
1700 error_msg = re.escape("Cannot specify ',' with ','.")
1701 with self.assertRaisesRegex(ValueError, error_msg):
1702 f'{1:,,}'
1703
1704 def test_with_two_underscore_in_format_specifier(self):
1705 error_msg = re.escape("Cannot specify '_' with '_'.")

Callers

nothing calls this directly

Calls 2

assertRaisesRegexMethod · 0.95
escapeMethod · 0.80

Tested by

no test coverage detected