Re: assertraises behaviour

Discussion in 'Python' started by Peter Otten, Jul 16, 2012.

  1. Peter Otten

    Peter Otten Guest

    andrea crotti wrote:

    > Good thanks, but there is something that implements this behaviour..
    > For example nose runs all the tests, and if there are failures it goes
    > on and shows the failed tests only in the end, so I think it is
    > possible to achieve somehow, is that correct?


    No, I don't see how the code you gave above can fail with an OSError.

    Can you give an example that produces the desired behaviour with nose? Maybe
    we can help you translate it to basic unittest.
     
    Peter Otten, Jul 16, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. john
    Replies:
    2
    Views:
    2,032
  2. Inyeol
    Replies:
    3
    Views:
    337
    Chris Torek
    Oct 27, 2010
  3. andrea crotti

    Re: assertraises behaviour

    andrea crotti, Jul 16, 2012, in forum: Python
    Replies:
    0
    Views:
    188
    andrea crotti
    Jul 16, 2012
  4. andrea crotti

    Re: assertraises behaviour

    andrea crotti, Jul 17, 2012, in forum: Python
    Replies:
    4
    Views:
    221
    Prasad, Ramit
    Jul 17, 2012
  5. Terry Reedy

    Re: assertraises behaviour

    Terry Reedy, Jul 17, 2012, in forum: Python
    Replies:
    0
    Views:
    180
    Terry Reedy
    Jul 17, 2012
Loading...

Share This Page