This is an archive of the discontinued LLVM Phabricator instance.

Move some of the common decorators to decorators.py
ClosedPublic

Authored by zturner on Feb 3 2016, 5:39 PM.

Details

Summary

This creates the decorators.py module and moves some of the low level common decorators there.

There are many more decorators not included here, but I didn't want to clutter up the patch with unnecessary spam of files that all I'm doing is just adding a new import statement. So assuming people are ok with the high level direction / approach used here, I'll submit this and then I'll do the follow up (that finishes off the rest of the decorators) without review.

Diff Detail

Event Timeline

zturner updated this revision to Diff 46856.Feb 3 2016, 5:39 PM
zturner retitled this revision from to Move some of the common decorators to decorators.py.
zturner updated this object.
zturner added reviewers: labath, tberghammer, tfiala.
zturner added a subscriber: lldb-commits.

Perhaps one possibility to avoid the massive changes to every test file required by changes like this is to make a module like test_imports.py, and have that file import all of these things, and then have each test just import test_imports. That way we don't have to deal with sweeping changes like this in the future, just make the change to the one master import file.

labath accepted this revision.Feb 4 2016, 1:40 AM
labath edited edge metadata.

I think it's a good idea. I haven't given it a spin, but I think we can fix up any breakages from this on the fly.

This revision is now accepted and ready to land.Feb 4 2016, 1:40 AM
tberghammer accepted this revision.Feb 4 2016, 5:09 AM
tberghammer edited edge metadata.

Looks reasonable

packages/Python/lldbsuite/test/lldbtest.py
672–682

I think Pavel intentionally removed this function in a recent CL. Please don't add it back

tfiala accepted this revision.Mar 10 2016, 8:23 AM
tfiala edited edge metadata.

This happened, right? Can we close?

zturner closed this revision.Mar 15 2016, 9:02 AM