8000 Fix typos discovered by codespell by cclauss · Pull Request #1082 · PyMySQL/PyMySQL · GitHub
[go: up one dir, main page]

Skip to content

Fix typos discovered by codespell #1082

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ Release date: 2016-08-30
Release date: 2016-07-29

* Fix SELECT JSON type cause UnicodeError
* Avoid float convertion while parsing microseconds
* Avoid float conversion while parsing microseconds
* Warning has number
* SSCursor supports warnings

Expand Down
2 changes: 1 addition & 1 deletion pymysql/_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def caching_sha2_password_auth(conn, pkt):
return pkt

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

if DEBUG:
print("caching sha2: Trying full auth...")
Expand Down
2 changes: 1 addition & 1 deletion pymysql/tests/test_DictCursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def setUp(self):
self.conn = conn = self.connect()
c = c 10000 onn.cursor(self.cursor_type)

# create a table ane some data to query
# create a table and some data to query
with warnings.catch_warnings():
warnings.filterwarnings("ignore")
c.execute("drop table if exists dictcursor")
Expand Down
2 changes: 1 addition & 1 deletion pymysql/tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def setUp(self):
self.conn = conn = self.connect()
c = conn.cursor(self.cursor_type)

# create a table ane some data to query
# create a table and some data to query
self.safe_create_table(
conn,
"bulkinsert",
Expand Down
12 changes: 6 additions & 6 deletions pymysql/tests/thirdparty/test_MySQLdb/dbapi20.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@
# - Now a subclass of TestCase, to avoid requiring the driver stub
# to use multiple inheritance
# - Reversed the polarity of buggy test in test_description
# - Test exception heirarchy correctly
# - 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
Expand Down Expand Up @@ -174,7 +174,7 @@ def test_paramstyle(self):

def test_Exceptions(self):
# Make sure required exceptions exist, and are in the
# defined heirarchy.
# defined hierarchy.
self.assertTrue(issubclass(self.driver.Warning, Exception))
self.assertTrue(issubclass(self.driver.Error, Exception))
self.assertTrue(issubclass(self.driver.InterfaceError, self.driver.Error))
Expand Down Expand Up @@ -474,7 +474,7 @@ def test_fetchone(self):
self.assertRaises(self.driver.Error, cur.fetchone)

# cursor.fetchone should raise an Error if cal 103CA led after
# executing a query that cannnot return rows
# executing a query that cannot return rows
self.executeDDL1(cur)
self.assertRaises(self.driver.Error, cur.fetchone)

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

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

def test_setoutputsize(self):
# Real test for setoutputsize is driver dependant
# Real test for setoutputsize is driver dependent
raise NotImplementedError("Driver need to override this test")

def test_None(self):
Expand Down
4 changes: 2 additions & 2 deletions pymysql/tests/thirdparty/test_MySQLdb/test_MySQLdb_dbapi20.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def test_fetchone(self):
self.assertRaises(self.driver.Error, cur.fetchone)

# cursor.fetchone should raise an Error if called after
# executing a query that cannnot return rows
# executing a query that cannot return rows
self.executeDDL1(cur)
## self.assertRaises(self.driver.Error,cur.fetchone)

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

# cursor.fetchone should raise an Error if called after
# executing a query that cannnot return rows
# executing a query that cannot return rows
cur.execute(
"insert into %sbooze values ('Victoria Bitter')" % (self.table_prefix)
)
Expand Down
0