#14487 closed (fixed)
Stop leaking unittest2 as 'unittest' from django.test.simple
| Reported by: | Jannis Leidel | Owned by: | nobody | 
|---|---|---|---|
| Component: | Testing framework | Version: | 1.2 | 
| Severity: | Keywords: | ||
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no | 
| Needs tests: | no | Patch needs improvement: | no | 
| Easy pickings: | no | UI/UX: | no | 
Description
This is especially dangerous for cases of from django.test.simple import * where a import unittest comes before.
Change History (3)
comment:1 by , 15 years ago
| Resolution: | → fixed | 
|---|---|
| Status: | new → closed | 
comment:2 by , 15 years ago
Although this bug technically exists in 1.2 as well, I'm not going to backport, The issue isn't as critical with 1.2 because there isn't a second unittest causing problems; plus, this could break code in production. That code probably *should* break, since it's relying on imports that it shouldn't, but it's a breakage that we don't need to enforce. 
  Note:
 See   TracTickets
 for help on using tickets.
    
(In [14258]) Fixed #14487 -- Prevented unittest from leaking into scope via a 'from django.test.testcases import *' import. Thanks to Jannis for the report.