Merge pull request #22920 from lidizheng/stop-leak

Add module docstring for the leak test
pull/22921/head
Lidi Zheng 5 years ago committed by GitHub
commit 5ba3ee13b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      src/python/grpcio_tests/tests_py3_only/unit/_leak_test.py

@ -11,7 +11,12 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""A smoke test for memory leaks."""
"""A smoke test for memory leaks on short-lived channels without close.
This test doesn't guarantee all resources are cleaned if `Channel.close` is not
explicitly invoked. The recommended way of using Channel object is using `with`
clause, and let context manager automatically close the channel.
"""
import logging
import os

Loading…
Cancel
Save