Fix several typos

This commit is contained in:
Hyunjun Kim 2015-03-16 17:50:20 +09:00 committed by Daniele Varrazzo
parent 2cab752443
commit 4eee1207f9
3 changed files with 5 additions and 4 deletions

View File

@ -1546,7 +1546,7 @@ psyco_curs_copy_expert(cursorObject *self, PyObject *args, PyObject *kwargs)
if (sql == NULL) { goto exit; } if (sql == NULL) { goto exit; }
/* This validation of file is rather weak, in that it doesn't enforce the /* This validation of file is rather weak, in that it doesn't enforce the
assocation between "COPY FROM" -> "read" and "COPY TO" -> "write". association between "COPY FROM" -> "read" and "COPY TO" -> "write".
However, the error handling in _pq_copy_[in|out] must be able to handle However, the error handling in _pq_copy_[in|out] must be able to handle
the case where the attempt to call file.read|write fails, so no harm the case where the attempt to call file.read|write fails, so no harm
done. */ done. */

View File

@ -62,7 +62,7 @@ import sys
# - Reversed the polarity of buggy test in test_description # - Reversed the polarity of buggy test in test_description
# - Test exception hierarchy correctly # - Test exception hierarchy correctly
# - self.populate is now self._populate(), so if a driver stub # - self.populate is now self._populate(), so if a driver stub
# overrides self.ddl1 this change propogates # overrides self.ddl1 this change propagates
# - VARCHAR columns now have a width, which will hopefully make the # - VARCHAR columns now have a width, which will hopefully make the
# DDL even more portible (this will be reversed if it causes more problems) # DDL even more portible (this will be reversed if it causes more problems)
# - cursor.rowcount being checked after various execute and fetchXXX methods # - cursor.rowcount being checked after various execute and fetchXXX methods
@ -804,7 +804,7 @@ class DatabaseAPI20Test(unittest.TestCase):
con.close() con.close()
def test_setoutputsize(self): def test_setoutputsize(self):
# Real test for setoutputsize is driver dependant # Real test for setoutputsize is driver dependent
raise NotImplementedError('Driver needed to override this test') raise NotImplementedError('Driver needed to override this test')
def test_None(self): def test_None(self):

View File

@ -65,7 +65,8 @@ else:
unittest.TestCase.skipTest = skipTest unittest.TestCase.skipTest = skipTest
# Silence warnings caused by the stubborness of the Python unittest maintainers # Silence warnings caused by the stubbornness of the Python unittest
# maintainers
# http://bugs.python.org/issue9424 # http://bugs.python.org/issue9424
if not hasattr(unittest.TestCase, 'assert_') \ if not hasattr(unittest.TestCase, 'assert_') \
or unittest.TestCase.assert_ is not unittest.TestCase.assertTrue: or unittest.TestCase.assert_ is not unittest.TestCase.assertTrue: