summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_reprlib.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2014-11-15 18:58:58 (GMT)
committerRaymond Hettinger <python@rcn.com>2014-11-15 18:58:58 (GMT)
commita34cd0c781d8e6581fdb4927560f81b594e29f1d (patch)
treeab4843b09a526cf3c20aebc6bb891298843ff8d0 /Lib/test/test_reprlib.py
parent5d438339822e9ae660940fe0ed009e7253d0a2a4 (diff)
downloadcpython-a34cd0c781d8e6581fdb4927560f81b594e29f1d.zip
cpython-a34cd0c781d8e6581fdb4927560f81b594e29f1d.tar.gz
cpython-a34cd0c781d8e6581fdb4927560f81b594e29f1d.tar.bz2
Issue #22824: Simplify reprlib output format for empty arrays
Diffstat (limited to 'Lib/test/test_reprlib.py')
-rw-r--r--Lib/test/test_reprlib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_reprlib.py b/Lib/test/test_reprlib.py
index 83f38cd..a51c4d7 100644
--- a/Lib/test/test_reprlib.py
+++ b/Lib/test/test_reprlib.py
@@ -94,7 +94,7 @@ class ReprTests(unittest.TestCase):
eq(r(d), "{'alice': 1, 'arthur': 1, 'bob': 2, 'charles': 3, ...}")
# array.array after 5.
- eq(r(array('i')), "array('i', [])")
+ eq(r(array('i')), "array('i')")
eq(r(array('i', [1])), "array('i', [1])")
eq(r(array('i', [1, 2])), "array('i', [1, 2])")
eq(r(array('i', [1, 2, 3])), "array('i', [1, 2, 3])")