Skip to content

Commit

Permalink
make linters happy
Browse files Browse the repository at this point in the history
  • Loading branch information
parkerhancock authored and jairhenrique committed Dec 8, 2023
1 parent f5fc7aa commit f4467a8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions tests/integration/test_httpx.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import os

import pytest

Expand All @@ -7,7 +6,6 @@
asyncio = pytest.importorskip("asyncio")
httpx = pytest.importorskip("httpx")

from vcr.stubs.httpx_stubs import HTTPX_REDIRECT_PARAM # noqa: E402


@pytest.fixture(params=["https", "http"])
Expand Down
3 changes: 1 addition & 2 deletions tests/integration/test_proxy.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
"""Test using a proxy."""

import http.server
import multiprocessing
import threading
import socketserver
import threading
from urllib.request import urlopen

import pytest
Expand Down
2 changes: 1 addition & 1 deletion vcr/serializers/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def convert_body_to_unicode(resp):
If the request or responses body is bytes, decode it to a string
(for python3 support)
"""
if type(resp) is not dict:
if not isinstance(resp, dict):
# Some of the tests just serialize and deserialize a string.
return _convert_string_to_unicode(resp)
else:
Expand Down

0 comments on commit f4467a8

Please sign in to comment.