Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Make test more messy
  • Loading branch information
erlend-aasland committed Jun 9, 2022
commit b45e5b50fd71fce8e779550361662d91a03729cd
3 changes: 1 addition & 2 deletions Lib/test/test_sqlite3/test_dbapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -908,14 +908,13 @@ def test_rowcount_update_returning(self):

def test_rowcount_prefixed_with_comment(self):
# gh-79579: rowcount is updated even if query is prefixed with comments
#self.cu.execute("/* foo */ insert into test(name) values (?)", ('foo',))
self.cu.execute("""
-- foo
insert into test(name) values ('foo')
""")
self.assertEqual(self.cu.rowcount, 1)
self.cu.execute("""
/* -- messy /* /* *- *--
/* -- messy /* /* ** *- *--
*/
/* one more */ insert into test(name) values ('messy')
""")
Expand Down