problem including tests in unittest

Chris Fonnesbeck fonnesbeck at
Thu Oct 12 19:24:37 CEST 2006

I have a module for which I am trying to code a unit test. However,
when I run unittest.main(), I get:

In [1]: import PyMC

In [2]: PyMC.unittest.main()

Ran 0 tests in 0.000s


This is confusing, because I have set up a class called MCMCTest that
is a sublcass of unttest.TestCase, which in turn contains a test
method. Yet, unittest seems not to be aware of it. Is there anything I
am forgetting?


Chris Fonnesbeck + Atlanta, GA +

More information about the Python-list mailing list