From: Georg Brandl Date: Mon, 20 Feb 2012 20:41:03 +0000 (+0100) Subject: Fix test_dis dependency on dict order. X-Git-Tag: v3.2.3rc1~29 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a108227c47b27116267aa2a131624e29d23d768d;p=thirdparty%2FPython%2Fcpython.git Fix test_dis dependency on dict order. --- diff --git a/Lib/test/test_dis.py b/Lib/test/test_dis.py index 7a61493c105c..42466183d8ed 100644 --- a/Lib/test/test_dis.py +++ b/Lib/test/test_dis.py @@ -268,12 +268,13 @@ Variable names: 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]