summaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_format.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_format.py b/Lib/test/test_format.py
index bc56fbce53..bbce970a97 100644
--- a/Lib/test/test_format.py
+++ b/Lib/test/test_format.py
@@ -324,6 +324,9 @@ class FormatTest(unittest.TestCase):
self.assertIs("{0:1s}".format(text), text)
self.assertIs("{0:5s}".format(text), text)
+ self.assertIs(text % (), text)
+ self.assertIs(text.format(), text)
+
def test_main():
support.run_unittest(FormatTest)