Ticket #2757 (closed enhancement: fixed)
give TrafficLoggingFactory a public API to reset its counter
| Reported by: | exarkun | Owned by: | therve |
|---|---|---|---|
| Priority: | highest | Milestone: | |
| Component: | core | Keywords: | |
| Cc: | therve, ralphm | Branch: | |
| Author: | Launchpad Bug: |
Description
TrafficLoggingFactory keeps track of how many connections have been made through it and uses this counter in constructing filenames to perform the logging. It would be useful, particularly for unit tests, if the counter could be reset to 0 via some public API.
In current trunk, twisted.test.test_policies.LoggingFactoryTestCase.testThingsGetLogged fails when run with trial -u since it doesn't account for the fact that the counter was incremented by a previous test.
Change History
Note: See
TracTickets for help on using
tickets.
