On Sat, Aug 16, 2008 at 09:33:24AM -0700, Brad Hall wrote: > Running from run.py will work if you're in the tests directory, but not from > the src directory, at the moment. I'm still trying to figure out a way to do > that cleanly (both make test and setup.py just cd to the tests dir). I > suppose we could have run.py figure out that you're in the src dir and chdir > itself or something.
Yeah, either that or adding to sys.path would likely be the simplest thing. You could play around with the imp module, but for this, that's probably overkill. > 91: I'll go through and check all of them, if there isn't any ClassType > objects I'll remove that part of the check. I was just curious how you'd get a ClassType object. It just now occurred to me that an old-style class (one that doesn't subclass object, either directly or indirectly) might be the trick, and indeed that's the case. We shouldn't be creating such classes, and the test for subclass of TestCase will weed them out even if the isinstance() check succeeds. Danek _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
