#1848 closed defect (wontfix)

write a static analysis tool to catch places where a Deferred is dropped

Reported by: davidsarah Owned by: davidsarah
Priority: normal Milestone: undecided
Component: dev-infrastructure Version: 1.9.2
Keywords: coding_tools deferred static-analysis Cc:
Launchpad Bug:

Description (last modified by exarkun)

If a Deferred goes out of scope without being returned (or passed into a method that is intended to consume it such as deferredutil.eventual_chain), that's usually a bug. Write a static analysis using compiler.ast to catch such bugs.

Change History (2)

comment:1 Changed at 2012-12-11T22:31:51Z by davidsarah

  • Component changed from code to dev-infrastructure
  • Keywords deferred static-analysis added

comment:2 Changed at 2020-01-17T14:16:41Z by exarkun

  • Description modified (diff)
  • Resolution set to wontfix
  • Status changed from new to closed

Intriguing but probably not. Static analysis of Python is really hard. Such a tool would likely produce false positives and be annoying. Instead, have comprehensive unit test coverage.

Note: See TracTickets for help on using tickets.