Commits

Nat Williams committed 375fe77

now reads captured text from Warns

  • Participants
  • Parent commits 8860d98

Comments (0)

Files changed (1)

File poster_plugin/hanky_poster.py

             test.failureException != AssertionError:
                 taken = time() - self._timer
                 result = 'W'
-                err = (int, 666, 'WHAT, ME ERROR?')
+                try:
+                    from functestplugin import WarnError
+                except ImportError:
+                    class WarnError(Warning): pass
+                err = (WarnError, None, test.capturedOutput)
                 self._add_test_case(test, err, result, taken)
         except AttributeError:
             # probably syntax error or something