Opened 8 years ago
Closed 8 years ago
#27938 closed Bug (duplicate)
Warning in tests: UserWarning: Limit for query logging exceeded, only the last 9000 queries will be returned.
Reported by: | Pavel Patrin | Owned by: | nobody |
---|---|---|---|
Component: | Testing framework | Version: | 1.10 |
Severity: | Normal | 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
I got a warning in test enviromnent.
django/db/backends/base/base.py:133: UserWarning: Limit for query logging exceeded, only the last 9000 queries will be returned.
After it assertion assertNumQueries()
always fails with '0 != XXX queries'.
As a hotfix I close all opened connections and do del connections[conname]
in TestCase.tearDownClass()
.
Change History (1)
comment:1 by , 8 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Type: | Uncategorized → Bug |
Note:
See TracTickets
for help on using tickets.
Duplicate of #27539.