Identi.ca Identi.ca
  • Login
  • Public

    • Public
    • Groups
    • Featured
    • Popular

Conversation

Notices

  1. absent absent

    can anyone teach me how to lazily load python unittests so that imports don't happen before IsolatedTestCase forks? http://ur1.ca/0ukr1

    Tuesday, 27-Jul-10 03:43:45 UTC from web at Canaveral Acres, Florida, United States
    • James Tatum James Tatum

      @statik funny enough, I was just looking at the unittest code today. They have code for dynamic module imports using module=__import__().

      Tuesday, 27-Jul-10 05:48:25 UTC
    • James Tatum James Tatum

      @statik I know that doesn't answer your question but the unittest.py source is small and simple, so probably worth taking a look at.

      Tuesday, 27-Jul-10 05:49:05 UTC
    • Rodney Dawes Rodney Dawes

      @statik bzrlib.lazy_import might be useful, though it does mean depending on bzrlib. (in case others were wondering)

      Tuesday, 27-Jul-10 16:48:20 UTC

Site notice

  • API
  • Status

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

Identi.ca is a microblogging service brought to you by Status.net. It runs the StatusNet microblogging software, version 1.1.0-alpha1, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Identi.ca content and data are available under the Creative Commons Attribution 3.0 license.

Switch to mobile site layout.

Built in Montreal