mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-07-05 07:52:04 +00:00
Some more stabilization of unittests
This commit is contained in:
parent
71d9c6d0f4
commit
d60e95ede7
20 changed files with 122 additions and 33 deletions
|
|
@ -38,6 +38,7 @@ class TestThreadData(unittest.TestCase):
|
|||
# ATTRIBUTE STATE is per-thread. Verify both: same object, independent state.
|
||||
main = T.getCurrentThreadData()
|
||||
self.assertIs(main, T.getCurrentThreadData()) # stable within a thread
|
||||
self.addCleanup(main.reset) # don't leak the main thread's mutated state to later tests
|
||||
|
||||
main.retriesCount = 111
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue