8000 bpo-40823: Use loadTestsFromTestCase() iso. makeSuite() in sqlite3 tests by erlend-aasland · Pull Request #20538 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-40823: Use loadTestsFromTestCase() iso. makeSuite() in sqlite3 tests #20538

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 6 commits into from
Jan 7, 2021
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
Revert encoding changes in commit fd4f651
  • Loading branch information
Erlend E. Aasland committed Jan 6, 2021
commit f93a63b1cd6cb9c9dd6ddbe6700fc1ce3f84862a
10 changes: 5 additions & 5 deletions Lib/sqlite3/test/types.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#-*- coding: iso-8859-1 -*-
# pysqlite2/test/types.py: tests for type conversion and detection
#
# Copyright (C) 2005 Gerhard Häring <gh@ghaering.de>
# Copyright (C) 2005 Gerhard H�ring <gh@ghaering.de>
#
# This file is part of pysqlite.
#
Expand Down Expand Up @@ -41,10 +41,10 @@ def tearDown(self):
self.con.close()

def test_string(self):
self.cur.execute("insert into test(s) values (?)", ("Österreich",))
self.cur.execute("insert into test(s) values (?)", ("�sterreich",))
self.cur.execute("select s from test")
row = self.cur.fetchone()
self.assertEqual(row[0], "Österreich")
self.assertEqual(row[0], "�sterreich")

def test_small_int(self):
self.cur.execute("insert into test(i) values (?)", (42,))
Expand Down Expand Up @@ -75,9 +75,9 @@ def test_blob(self):
self.assertEqual(row[0], sample)

def test_unicode_execute(self):
self.cur.execute("select 'Österreich'")
self.cur.execute("select '�sterreich'")
row = self.cur.fetchone()
self.assertEqual(row[0], "Österreich")
self.assertEqual(row[0], "�sterreich")

class DeclTypesTests(unittest.TestCase):
class Foo:
Expand Down
0