8000 Fix typos discovered by codespell (#1082) · sanchezg/PyMySQL@e91d097 · GitHub
[go: up one dir, main page]

Skip to content

Commit e91d097

Browse files
authored
Fix typos discovered by codespell (PyMySQL#1082)
1 parent e3a1beb commit e91d097

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ Release date: 2016-08-30
204204
Release date: 2016-07-29
205205

206206
* Fix SELECT JSON type cause UnicodeError
207-
* Avoid float convertion while parsing microseconds
207+
* Avoid float conversion while parsing microseconds
208208
* Warning has number
209209
* SSCursor supports warnings
210210

pymysql/_auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def caching_sha2_password_auth(conn, pkt):
241241
return pkt
242242

243243
if n != 4:
244-
raise OperationalError("caching sha2: Unknwon result for fast auth: %s" % n)
244+
raise OperationalError("caching sha2: Unknown result for fast auth: %s" % n)
245245

246246
if DEBUG:
247247
print("caching sha2: Trying full auth...")

pymysql/tests/test_DictCursor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def setUp(self):
1717
self.conn = conn = self.connect()
1818
c = conn.cursor(self.cursor_type)
1919

20-
# create a table ane some data to query
20+
# create a table and some data to query
2121
with warnings.catch_warnings():
2222
warnings.filterwarnings("ignore")
2323
c.execute("drop table if exists dictcursor")

pymysql/tests/test_basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ def setUp(self):
320320
self.conn = conn = self.connect()
321321
c = conn.cursor(self.cursor_type)
322322

323-
# create a table ane some data to query
323+
# create a table and some data to query
324324
self.safe_create_table(
325325
conn,
326326
"bulkinsert",

pymysql/tests/thirdparty/test_MySQLdb/dbapi20.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@
5151
# - Now a subclass of TestCase, to avoid requiring the driver stub
5252
# to use multiple inheritance
5353
# - Reversed the polarity of buggy test in test_description
54-
# - Test exception heirarchy correctly
54+
# - Test exception hierarchy correctly
5555
# - self.populate is now self._populate(), so if a driver stub
56-
# overrides self.ddl1 this change propogates
56+
# overrides self.ddl1 this change propagates
5757
# - VARCHAR columns now have a width, which will hopefully make the
5858
# DDL even more portible (this will be reversed if it causes more problems)
5959
# - cursor.rowcount being checked after various execute and fetchXXX methods
@@ -174,7 +174,7 @@ def test_paramstyle(self):
174174

175175
def test_Exceptions(self):
176176
# Make sure required exceptions exist, and are in the
177-
# defined heirarchy.
177+
# defined hierarchy.
178178
self.assertTrue(issubclass(self.driver.Warning, Exception))
179179
self.assertTrue(issubclass(self.driver.Error, Exception))
180180
self.assertTrue(issubclass(self.driver.InterfaceError, self.driver.Error))
@@ -474,7 +474,7 @@ def test_fetchone(self):
474474
self.assertRaises(self.driver.Error, cur.fetchone)
475475

476476
# cursor.fetchone should raise an Error if called after
477-
# executing a query that cannnot return rows
477+
# executing a query that cannot return rows
478478
self.executeDDL1(cur)
479479
self.assertRaises(self.driver.Error, cur.fetchone)
480480

@@ -487,7 +487,7 @@ def test_fetchone(self):
487487
self.assertTrue(cur.rowcount in (-1, 0))
488488

489489
# cursor.fetchone should raise an Error if called after
490-
# executing a query that cannnot return rows
490+
# executing a query that cannot return rows
491491
cur.execute(
492492
"insert into %sbooze values ('Victoria Bitter')" % (self.table_prefix)
493493
)
@@ -792,7 +792,7 @@ def test_setoutputsize_basic(self):
792792
con.close()
793793

794794
def test_setoutputsize(self):
795-
# Real test for setoutputsize is driver dependant
795+
# Real test for setoutputsize is driver dependent
796796
raise NotImplementedError("Driver need to override this test")
797797

798798
def test_None(self):

pymysql/tests/thirdparty/test_MySQLdb/test_MySQLdb_dbapi20.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def test_fetchone(self):
9292
self.assertRaises(self.driver.Error, cur.fetchone)
9393

9494
# cursor.fetchone should raise an Error if called after
95-
# executing a query that cannnot return rows
95+
# executing a query that cannot return rows
9696
self.executeDDL1(cur)
9797
## self.assertRaises(self.driver.Error,cur.fetchone)
9898

@@ -105,7 +105,7 @@ def test_fetchone(self):
105105
self.assertTrue(cur.rowcount in (-1, 0))
106106

107107
# cursor.fetchone should raise an Error if called after
108-
# executing a query that cannnot return rows
108+
# executing a query that cannot return rows
109109
cur.execute(
110110
"insert into %sbooze values ('Victoria Bitter')" % (self.table_prefix)
111111
)

0 commit comments

Comments
 (0)
0