1. Writing Tests that Fail Well

    Writing better tests is a lifelong pursuit, apparently.

    One thing I've been noticing lately, especially while doing code reviews, is that we are usually thinking about how do I know the code worked.

    Great! But we are usually not thinking ahead about what am I going to do when the …

    Tagged as : python testing programming
  2. Thread Locals in Python: Mostly easy

    Thread locals are an interesting idea: a way to give each thread its own storage, useful for global state that you don't want to share between threads.

    The obvious caveat is that threadlocals are still effectively global (for the current thread), and like all global state, should be treated with …

Page 2 / 6