aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-08-28 18:49:23 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-09-03 14:41:30 -0700
commit02c15ea091feacdd0c40a291346a3e1d7cad7e3b (patch)
treeeb2c309a3c7180cd39aebc21976f9fe1fa336d11 /tests
parent9b3049f0c8ec394b44a00be95a243348733821a2 (diff)
fix test_dlfcn_self
Diffstat (limited to 'tests')
-rw-r--r--tests/test_core.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/test_core.py b/tests/test_core.py
index 954ab94f..ce976975 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -6016,13 +6016,9 @@ return 0;
break
else:
raise Exception('Could not find symbol table!')
- import json
- table = json.loads(table[table.find('{'):table.rfind('}')+1])
- actual = list(sorted(table.keys()))
+ table = table[table.find('{'):table.rfind('}')+1]
# ensure there aren't too many globals; we don't want unnamed_addr
- assert actual == ['_foo', '_global', '_main', '_repeatable'], \
- "Symbol table does not match: %s" % actual
-
+ assert table.count(',') == 3
self.do_run(src, '123\n123', post_build=(None, post))
def test_rand(self):