summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTW <tw@waldmann-edv.de>2017-01-11 04:04:23 +0100
committerINADA Naoki <methane@users.noreply.github.com>2017-01-11 12:04:23 +0900
commite3fea94509767047a8ff45aa07cd58a9ba9694e7 (patch)
tree9a4cceb6a1967c8f83263cea13c4f80af901cef4 /test
parenta9f4dad4dcde4db148f22720c694e5b5e0cb6f2d (diff)
downloadmsgpack-python-e3fea94509767047a8ff45aa07cd58a9ba9694e7.tar.gz
fix typos and other cosmetic issues (#214)release-0.4
cosmetic issues: - reST headlines' underline length needs to match the headline length (looks like somebody is / was using a proportional font) - Cython code lines do not need to be terminated with a semicolon - always use triple-double-quotes for docstrings
Diffstat (limited to 'test')
-rw-r--r--test/test_extension.py2
-rw-r--r--test/test_pack.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/test_extension.py b/test/test_extension.py
index c552498..d05d7ab 100644
--- a/test/test_extension.py
+++ b/test/test_extension.py
@@ -42,7 +42,7 @@ def test_extension_type():
typecode = 123 # application specific typecode
data = obj.tostring()
return ExtType(typecode, data)
- raise TypeError("Unknwon type object %r" % (obj,))
+ raise TypeError("Unknown type object %r" % (obj,))
def ext_hook(code, data):
print('ext_hook called', code, data)
diff --git a/test/test_pack.py b/test/test_pack.py
index 762ccf5..e945902 100644
--- a/test/test_pack.py
+++ b/test/test_pack.py
@@ -130,7 +130,7 @@ def testMapSize(sizes=[0, 5, 50, 1000]):
class odict(dict):
- '''Reimplement OrderedDict to run test on Python 2.6'''
+ """Reimplement OrderedDict to run test on Python 2.6"""
def __init__(self, seq):
self._seq = seq
dict.__init__(self, seq)