Hi Joan, there already is "py.test.raises()" to do it dynamically. I am slightly hesitant to add a declarative way.
is a decorator the only way how nose supports "expected-to-raise" assertions? cheers, holger On Sun, Jan 31, 2010 at 17:26 +0000, Joan Miller wrote: > There is a decorator used in nose to manage errors that should be > raised, which makes it more clear: > > http://code.google.com/p/python-nose/source/browse/nose/tools.py#59 > > > 2010/1/27 holger krekel <hol...@merlinux.eu>: > > Hi all, > > > > if you have anything small regarding py.test that you'd like to see > > addressed > > please speak up. I plan to release a 1.2.1 end next week. > > > -- _______________________________________________ py-dev mailing list py-dev@codespeak.net http://codespeak.net/mailman/listinfo/py-dev