diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-10-11 20:17:24 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-10-11 20:17:24 -0400 |
commit | d93e5d5da230876e946aa94f59e706d3b798c62b (patch) | |
tree | e243592dfb6c30e766ae4363472d788effd00583 /test/test_data.py | |
parent | 064f6f18ea75af5f28a9adf959e902f6c3010bb6 (diff) | |
download | python-coveragepy-git-d93e5d5da230876e946aa94f59e706d3b798c62b.tar.gz |
Reduce the amount of data translation by having the tracers record data in a form more like it will be consumed. Also should reduce the amount of work the tracers have to do.
Diffstat (limited to 'test/test_data.py')
-rw-r--r-- | test/test_data.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_data.py b/test/test_data.py index a2557a91..12dd80aa 100644 --- a/test/test_data.py +++ b/test/test_data.py @@ -9,13 +9,13 @@ sys.path.insert(0, os.path.split(__file__)[0]) # Force relative import for Py3k from coveragetest import CoverageTest -DATA_1 = [ ('a.py',1), ('a.py',2), ('b.py',3) ] +DATA_1 = { 'a.py': {1:None, 2:None}, 'b.py': {3:None} } SUMMARY_1 = { 'a.py':2, 'b.py':1 } EXECED_FILES_1 = [ 'a.py', 'b.py' ] A_PY_LINES_1 = [1,2] B_PY_LINES_1 = [3] -DATA_2 = [ ('a.py',1), ('a.py',5), ('c.py',17) ] +DATA_2 = { 'a.py': {1:None, 5:None}, 'c.py': {17:None} } SUMMARY_1_2 = { 'a.py':3, 'b.py':1, 'c.py':1 } EXECED_FILES_1_2 = [ 'a.py', 'b.py', 'c.py' ] |