Skip to content

Commit

Permalink
Merge pull request #5 from sbraz/six
Browse files Browse the repository at this point in the history
Get rid of six
  • Loading branch information
jaraco committed Dec 28, 2020
2 parents 1055044 + e3024b3 commit eca232f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ python_requires = >=3.6
install_requires =
jaraco.text
jaraco.classes
six>=1.7.0
setup_requires = setuptools_scm >= 1.15.0

[options.extras_require]
Expand Down
6 changes: 2 additions & 4 deletions tests/test_collections.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import six

from jaraco import collections


Expand All @@ -11,7 +9,7 @@ class AlwaysStringKeysDict(collections.KeyTransformingDict):

@staticmethod
def transform_key(key):
return six.text_type(key)
return str(key)


def test_always_lower_keys_dict():
Expand All @@ -23,7 +21,7 @@ def test_always_lower_keys_dict():
d['Lasting'] = 'fleeting'
d[3] = 'three'
d[{'a': 1}] = 'a is one'
assert all(isinstance(key, six.text_type) for key in d)
assert all(isinstance(key, str) for key in d)
assert "{'a': 1}" in d
assert 3 in d
assert d[3] == d['3'] == 'three'

0 comments on commit eca232f

Please sign in to comment.