-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ported error_cleanup from autotest-client-test to avocado
- Loading branch information
Balamuruhan S
committed
Apr 25, 2016
1 parent
9ba8c6a
commit df88f14
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#! /usr/bin/env python | ||
|
||
from avocado import Test | ||
from avocado import main | ||
|
||
|
||
class error_cleanup(Test): | ||
""" | ||
Raise an exception during tearDown() | ||
""" | ||
|
||
def test(self): | ||
pass | ||
|
||
def tearDown(self): | ||
self.error("Test a bug in tearDown()") | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |