This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author alex.75
Recipients alex.75
Date 2012-05-31.19:02:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Steps to reproduce the problem.
1. Create a module (ex. name it "test") 
2. Create a file in it (ex. with a class (ex. MainTest) derived from TestCase.
3. Create a test method in that class, (ex. test_base), prefix it with "test".
4. Create a decorator (ex. clear_args) and use it on the test method 
5. Create a test suite with the function "loadTestsFromName" of TestLoader class and make a TestRunner run it (I use a TextTestRunner). 
suite = unittest.TestLoader().loadTestsFromName('test.mainTest.MainTest.test_base')

It is expected that the test is run (it runs without decorator).
It gives an error: no such test method in <class 'test.mainTest.MainTest'>: wrapper.
"wrapper" is the name of the returned function in the decorator.

I'm using Python 2.7.3 on Windows 7 64bit.
I search "loadTestsFromName decorator" without results, so I decided to report as new issue. This is my first report, I admit I've not read any guide/instructions.
Date User Action Args
2012-05-31 19:02:19alex.75setrecipients: + alex.75
2012-05-31 19:02:19alex.75setmessageid: <>
2012-05-31 19:02:18alex.75linkissue14971 messages
2012-05-31 19:02:18alex.75create