Re: [Pyobjc-dev] NSObject, doctest
Brought to you by:
ronaldoussoren
From: Erik v. B. <er...@le...> - 2014-02-23 08:05:19
|
On 19 dec. 2013, at 13:42, Ronald Oussoren <ron...@ma...> wrote: >> >> Is there something in the nature of pyobjc objects that makes them confuse dockets? > > Not sure if the class repr at the top of the traceback is relevant, but if it is this might be due to doctest trying to test some PyObjC classes. > > BTW. I’m moving away from “from AppKit import *” towards just importing what I need. That leads to code that’s slightly easier to check with linting tools, and in recent versions of PyObjC is faster as well because the framework wrappers now try to do as little work as possible (and that doesn’t work when you import everything). I finally got around to rewriting the tests, for completeness' sake I can confirm that switching from AppKit import * to just the items I need allows the doctests to run. Thanks! E |