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 | e7f56282abb760b75217aac5c5a6e69c83dd0028 (patch) | |
| tree | c20a779dd825ea758bdd3ad86036cebecf1d1365 /test/test_data.py | |
| parent | 81699412dad10034be464469578170757e9d4afc (diff) | |
| download | python-coveragepy-e7f56282abb760b75217aac5c5a6e69c83dd0028.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 a2557a9..12dd80a 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' ] |
