[Python-checkins] cpython (3.2): Fix test_dis dependency on dict order.

georg.brandl python-checkins at python.org
Mon Feb 20 21:41:46 CET 2012


http://hg.python.org/cpython/rev/224ebf9d428a
changeset:   75078:224ebf9d428a
branch:      3.2
user:        Georg Brandl <georg at python.org>
date:        Mon Feb 20 21:41:03 2012 +0100
summary:
  Fix test_dis dependency on dict order.

files:
  Lib/test/test_dis.py |  13 +++++++------
  1 files changed, 7 insertions(+), 6 deletions(-)


diff --git a/Lib/test/test_dis.py b/Lib/test/test_dis.py
--- a/Lib/test/test_dis.py
+++ b/Lib/test/test_dis.py
@@ -268,12 +268,13 @@
    6: args
    7: kwds
 Cell variables:
-   0: e
-   1: d
-   2: f
-   3: y
-   4: x
-   5: z"""
+   0: [edfxyz]
+   1: [edfxyz]
+   2: [edfxyz]
+   3: [edfxyz]
+   4: [edfxyz]
+   5: [edfxyz]"""
+# NOTE: the order of the cell variables above depends on dictionary order!
 
 co_tricky_nested_f = tricky.__func__.__code__.co_consts[1]
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list