diff options
author | Karthikeyan Singaravelan <tir.karthi@gmail.com> | 2021-04-17 05:11:03 +0000 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-04-17 08:35:33 -0400 |
commit | 90815d959dfff9c42629e3467d6e1a410cce6d04 (patch) | |
tree | eb89eda2c4121b9200c019b030ca3d851056bd10 /tests/test_concurrency.py | |
parent | 05fbe9c95352ad7536c1f8ebd53a6739714a8af9 (diff) | |
download | python-coveragepy-git-90815d959dfff9c42629e3467d6e1a410cce6d04.tar.gz |
Use current_thread instead of currentThread that was deprecated in Python 3.10
Diffstat (limited to 'tests/test_concurrency.py')
-rw-r--r-- | tests/test_concurrency.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_concurrency.py b/tests/test_concurrency.py index 86c69cf5..54e50014 100644 --- a/tests/test_concurrency.py +++ b/tests/test_concurrency.py @@ -518,7 +518,7 @@ def test_coverage_stop_in_threads(): def run_thread(): # pragma: nested """Check that coverage is stopping properly in threads.""" deadline = time.time() + 5 - ident = threading.currentThread().ident + ident = threading.current_thread().ident if sys.gettrace() is not None: has_started_coverage.append(ident) while sys.gettrace() is not None: |