소스 검색

use manual python calls instead of pytest

justheuristic 4 년 전
부모
커밋
e606a27a53
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      tests/test_averaging.py

+ 2 - 0
tests/test_averaging.py

@@ -1,4 +1,5 @@
 import asyncio
+import contextlib
 import gc
 import random
 import time
@@ -22,6 +23,7 @@ from test_utils.dht_swarms import launch_dht_instances
 logger = get_logger(__name__)
 
 
+@contextlib.contextmanager
 def cleanup_children():
     yield