diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-08-28 18:49:23 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-09-03 14:41:30 -0700 |
commit | 02c15ea091feacdd0c40a291346a3e1d7cad7e3b (patch) | |
tree | eb2c309a3c7180cd39aebc21976f9fe1fa336d11 /tests | |
parent | 9b3049f0c8ec394b44a00be95a243348733821a2 (diff) |
fix test_dlfcn_self
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_core.py | 8 |
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): |