Skip to content

Commit

Permalink
remove dependency on six (Azure#30895)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangyan99 authored Jun 27, 2023
1 parent 0161163 commit e016b9b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
# Licensed under the MIT License.
# ------------------------------------
import pytest
import six

from azure.core.exceptions import ClientAuthenticationError
from azure.core.paging import ItemPaged
Expand Down Expand Up @@ -38,7 +37,7 @@ def test_list_repository_names(self, containerregistry_anonregistry_endpoint):
prev = None
for repo in repositories:
count += 1
assert isinstance(repo, six.string_types)
assert isinstance(repo, str)
assert prev != repo
prev = repo

Expand All @@ -62,7 +61,7 @@ def test_list_repository_names_by_page(self, containerregistry_anonregistry_endp
for page in repository_pages.by_page():
page_count = 0
for repo in page:
assert isinstance(repo, six.string_types)
assert isinstance(repo, str)
assert prev != repo
prev = repo
page_count += 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
# Licensed under the MIT License.
# ------------------------------------
import pytest
import six
from azure.containerregistry import (
RepositoryProperties,
ArtifactManifestProperties,
Expand Down Expand Up @@ -38,7 +37,7 @@ async def test_list_repository_names(self, containerregistry_anonregistry_endpoi
prev = None
async for repo in repositories:
count += 1
assert isinstance(repo, six.string_types)
assert isinstance(repo, str)
assert prev != repo
prev = repo

Expand All @@ -62,7 +61,7 @@ async def test_list_repository_names_by_page(self, containerregistry_anonregistr
async for page in repository_pages.by_page():
page_count = 0
async for repo in page:
assert isinstance(repo, six.string_types)
assert isinstance(repo, str)
assert prev != repo
prev = repo
page_count += 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# ------------------------------------
import os
import pytest
import six
import hashlib
import json
from datetime import datetime
Expand Down Expand Up @@ -50,7 +49,7 @@ def test_list_repository_names(self, containerregistry_endpoint):
prev = None
for repo in repositories:
count += 1
assert isinstance(repo, six.string_types)
assert isinstance(repo, str)
assert prev != repo
prev = repo

Expand All @@ -69,7 +68,7 @@ def test_list_repository_names_by_page(self, containerregistry_endpoint):
for page in repository_pages.by_page():
page_count = 0
for repo in page:
assert isinstance(repo, six.string_types)
assert isinstance(repo, str)
assert prev != repo
prev = repo
page_count += 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# ------------------------------------
import os
import pytest
import six
import hashlib
import json
from datetime import datetime
Expand Down Expand Up @@ -50,7 +49,7 @@ async def test_list_repository_names(self, containerregistry_endpoint):
prev = None
async for repo in repositories:
count += 1
assert isinstance(repo, six.string_types)
assert isinstance(repo, str)
assert prev != repo
prev = repo

Expand All @@ -69,7 +68,7 @@ async def test_list_repository_names_by_page(self, containerregistry_endpoint):
async for page in repository_pages.by_page():
page_count = 0
async for repo in page:
assert isinstance(repo, six.string_types)
assert isinstance(repo, str)
assert prev != repo
prev = repo
page_count += 1
Expand Down

0 comments on commit e016b9b

Please sign in to comment.