[pypy-commit] pypy default: add passing test

arigo noreply at buildbot.pypy.org
Thu Oct 24 18:51:56 CEST 2013


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r67574:23b6e00c0040
Date: 2013-10-24 18:51 +0200
http://bitbucket.org/pypy/pypy/changeset/23b6e00c0040/

Log:	add passing test

diff --git a/rpython/rtyper/test/test_rdict.py b/rpython/rtyper/test/test_rdict.py
--- a/rpython/rtyper/test/test_rdict.py
+++ b/rpython/rtyper/test/test_rdict.py
@@ -1078,6 +1078,13 @@
         res = self.interpret(func, [42])
         assert res == 42
 
+    def test_dict_with_empty_tuple_key(self):
+        def func(i):
+            d = {(): i}
+            return d[()]
+        res = self.interpret(func, [42])
+        assert res == 42
+
 
 class TestStress:
 


More information about the pypy-commit mailing list