diff options
author | Georg Brandl <georg@python.org> | 2012-02-20 20:41:03 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2012-02-20 20:41:03 (GMT) |
commit | a108227c47b27116267aa2a131624e29d23d768d (patch) | |
tree | 1e8e6477be661d0ea6ba4b4ab92221e71d5484c9 | |
parent | c425a94899a10b565df060c6f943b5d8b4a85ac9 (diff) | |
download | cpython-a108227c47b27116267aa2a131624e29d23d768d.zip cpython-a108227c47b27116267aa2a131624e29d23d768d.tar.gz cpython-a108227c47b27116267aa2a131624e29d23d768d.tar.bz2 |
Fix test_dis dependency on dict order.
-rw-r--r-- | 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 index 7a61493..4246618 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] |