Skip to content

Commit

Permalink
Use contextlib in test_profile_parser (#590)
Browse files Browse the repository at this point in the history
* Use contextlib in test_profile_parser

Since the project no longer declares a requirement of contextlib2, and
the lowest version of Python supported is 3.7, we should remove the use
of contextlib2. Switch the import to contextlib.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
s-t-e-v-e-n-k and pre-commit-ci[bot] authored Oct 12, 2022
1 parent dcbc6e0 commit e2cf24f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion project/tests/test_profile_parser.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import contextlib
import cProfile
import io
import re

import contextlib2 as contextlib
from django.test import TestCase

from silk.utils.profile_parser import parse_profile
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
contextlib2==21.6.0
coverage==6.3.2
factory-boy==3.2.1
freezegun==1.1.0
Expand Down

0 comments on commit e2cf24f

Please sign in to comment.