Skip to content

Commit 725fd21

Browse files
committed
SR tests: fix Python3 and Pytest>=6.0 errors
1 parent cf5a95b commit 725fd21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/schema_registry/conftest.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def _auth_matcher(cls, request):
183183

184184
# We only support the BASIC scheme today
185185
scheme, userinfo = authinfo.split(" ")
186-
if b64decode(userinfo) == cls.USERINFO:
186+
if b64decode(userinfo).decode('utf-8') == cls.USERINFO:
187187
return None
188188

189189
unauthorized = {'error_code': 401,
@@ -349,7 +349,7 @@ def post_subject_version_callback(self, request, context):
349349
return {'id': self.SCHEMA_ID}
350350

351351

352-
@pytest.fixture("package")
352+
@pytest.fixture(scope="package")
353353
def load_avsc():
354354
def get_handle(name):
355355
with open(os.path.join(work_dir, '..', 'integration', 'schema_registry',

0 commit comments

Comments
 (0)