Skip to content

Commit

Permalink
Added skip support for Python 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
kumar303 committed Dec 18, 2010
1 parent 7d19153 commit 6ee1ea7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nosenicedots/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ def addFailure(self, test, err):
self.printError('FAIL', err, test)
self.stream.flush()

def addSkip(self, test, reason):
# only in 2.7+
self.stream.writeln("")
self.stream.writeln("SKIP: %s" % nice_test_address(test))
super(TestResult, self).addSkip(test, reason)

def addSuccess(self, test):
TestResult.addSuccess(self, test)
if self.showAll:
Expand Down

0 comments on commit 6ee1ea7

Please sign in to comment.