Skip to main content
Session.reset() → None
Bring the session back to the state it was in right after start() returned. Resetting a session is equivalent to the code below, but much faster since it neither stops nor starts a JVM:
The main use case is to save resources in tests. For example, a pytest fixture can start a single session for all the tests and reset it after each of them:
Added in version 6.2.4.