From 00c0b8a989ae54f4466d15b78a2e8729baf441ef Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Tue, 4 Feb 2014 00:50:22 +0200 Subject: [PATCH] Fix unstable case in builtin_id.py test. --- tests/basics/builtin_id.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/basics/builtin_id.py b/tests/basics/builtin_id.py index 4874f355b4..1d617c4ccb 100644 --- a/tests/basics/builtin_id.py +++ b/tests/basics/builtin_id.py @@ -1,6 +1,7 @@ print(id(1) == id(2)) print(id(None) == id(None)) -print(id([]) == id([])) +# This can't be true per Python semantics, just CPython implementation detail +#print(id([]) == id([])) l = [1, 2] print(id(l) == id(l))