summaryrefslogtreecommitdiff
path: root/Lib/test/test_weakref.py
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2006-05-28 19:13:17 +0000
committerArmin Rigo <arigo@tunes.org>2006-05-28 19:13:17 +0000
commita3f092751ae5f29957c78a7e86381532629c7fa3 (patch)
tree27eecd5671e5bbe3654c5630a62d1deb7300e80b /Lib/test/test_weakref.py
parente9eeab5c0539ede73b52f9df9bd4da8346c91741 (diff)
downloadcpython-git-a3f092751ae5f29957c78a7e86381532629c7fa3.tar.gz
("Forward-port" of r46506)
Remove various dependencies on dictionary order in the standard library tests, and one (clearly an oversight, potentially critical) in the standard library itself - base64.py. Remaining open issues: * test_extcall is an output test, messy to make robust * tarfile.py has a potential bug here, but I'm not familiar enough with this code. Filed in as SF bug #1496501. * urllib2.HTTPPasswordMgr() returns a random result if there is more than one matching root path. I'm asking python-dev for clarification...
Diffstat (limited to 'Lib/test/test_weakref.py')
-rw-r--r--Lib/test/test_weakref.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_weakref.py b/Lib/test/test_weakref.py
index 392e5fa34b..18ab4012fb 100644
--- a/Lib/test/test_weakref.py
+++ b/Lib/test/test_weakref.py
@@ -1053,8 +1053,8 @@ libreftest = """ Doctest for examples in the library reference: libweakref.tex
...
>>> obj = Dict(red=1, green=2, blue=3) # this object is weak referencable
>>> r = weakref.ref(obj)
->>> print r()
-{'blue': 3, 'green': 2, 'red': 1}
+>>> print r() is obj
+True
>>> import weakref
>>> class Object: