diff --git a/psycopg/cursor_type.c b/psycopg/cursor_type.c index fd019812..cd8d5ca3 100644 --- a/psycopg/cursor_type.c +++ b/psycopg/cursor_type.c @@ -1546,7 +1546,7 @@ psyco_curs_copy_expert(cursorObject *self, PyObject *args, PyObject *kwargs) if (sql == NULL) { goto exit; } /* 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 the case where the attempt to call file.read|write fails, so no harm done. */ diff --git a/tests/dbapi20.py b/tests/dbapi20.py index b8d6a399..f707c090 100644 --- a/tests/dbapi20.py +++ b/tests/dbapi20.py @@ -62,7 +62,7 @@ import sys # - Reversed the polarity of buggy test in test_description # - Test exception hierarchy correctly # - 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 # DDL even more portible (this will be reversed if it causes more problems) # - cursor.rowcount being checked after various execute and fetchXXX methods @@ -804,7 +804,7 @@ class DatabaseAPI20Test(unittest.TestCase): con.close() 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') def test_None(self): diff --git a/tests/testutils.py b/tests/testutils.py index 12732ac6..6a784320 100644 --- a/tests/testutils.py +++ b/tests/testutils.py @@ -65,7 +65,8 @@ else: 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 if not hasattr(unittest.TestCase, 'assert_') \ or unittest.TestCase.assert_ is not unittest.TestCase.assertTrue: