[pypy-commit] pypy default: #1180 - add boolean format test
kostialopuhin
noreply at buildbot.pypy.org
Wed Jun 20 23:55:43 CEST 2012
Author: Konstantin Lopuhin <kostia.lopuhin at gmail.com>
Branch:
Changeset: r55733:83d7e420ef12
Date: 2012-06-18 18:11 +0400
http://bitbucket.org/pypy/pypy/changeset/83d7e420ef12/
Log: #1180 - add boolean format test
diff --git a/lib-python/2.7/test/test_bool.py b/lib-python/2.7/test/test_bool.py
--- a/lib-python/2.7/test/test_bool.py
+++ b/lib-python/2.7/test/test_bool.py
@@ -35,6 +35,10 @@
self.assertEqual(eval(repr(False)), False)
self.assertEqual(eval(repr(True)), True)
+ def test_string_format(self):
+ self.assertEqual('{0}'.format(True), 'True')
+ self.assertEqual('{0}'.format(False), 'False')
+
def test_str(self):
self.assertEqual(str(False), 'False')
self.assertEqual(str(True), 'True')
More information about the pypy-commit
mailing list