pombreda / python-nose

Automatically exported from code.google.com/p/python-nose
0 stars 0 forks source link

setup_class broken in rednose: AttributeError: 'ContextSuite' object has no attribute 'test' #378

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
> What steps will reproduce the problem?

1. write a TestClass with setup_class method (or any similar)
2. run tests

> What is the expected output?

setup_class called once for a class and everything goes on

> What do you see instead?

ERROR

-------------------------------------------------------
1) Traceback (most recent call last):

> What version of the product are you using? On what operating system?

0.11.4 on ubuntu 10.10

Original issue reported on code.google.com by aenor.realm on 29 Nov 2010 at 3:13

Attachments:

GoogleCodeExporter commented 9 years ago
class_setup must be class method

Original comment by hash...@gmail.com on 29 Nov 2010 at 6:04

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Shouldn't there be a guard for class-setups if that leads to a cryptic crash?

Original comment by aenor.realm on 30 Nov 2010 at 6:05