summaryrefslogtreecommitdiff
path: root/tests/path.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2016-06-12 00:00:52 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2016-06-12 00:02:11 +0900
commit80921b2ab8dce62a4bbcea6c616a49516e5adddd (patch)
tree47ea5670231b9e5fbeee0b23469ffffaa6514773 /tests/path.py
parent2483122c2f716bef05eeb32c4a4b857e3e44d333 (diff)
downloadsphinx-git-80921b2ab8dce62a4bbcea6c616a49516e5adddd.tar.gz
Fix flake8 violation under tests/
Diffstat (limited to 'tests/path.py')
-rwxr-xr-xtests/path.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/path.py b/tests/path.py
index 901c9ce96..959b54875 100755
--- a/tests/path.py
+++ b/tests/path.py
@@ -206,10 +206,13 @@ class path(text_type):
class _repr_text(text_type):
def __repr__(self):
return self._repr
+
+
class _repr_bin(binary_type):
def __repr__(self):
return self._repr
+
def repr_as(string, repr_):
wrapper = _repr_text if isinstance(string, text_type) else _repr_bin
proxy = wrapper(string)