Skip to content

Commit c2ed7f1

Browse files
Adding the test file would be a good idea
1 parent 97d002d commit c2ed7f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/test/test_sqlite3/test_cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,11 @@ def test_interact_dot_commands_empty(self):
142142
self.assertEqual(out.count(self.PS2), 0)
143143

144144
def test_interact_dot_commands_with_whitespaces(self):
145-
out, err = self.run_cli(commands=(".version ", ". version"))
145+
out, err = self.run_cli(commands=(".version ",))
146146
self.assertIn(self.MEMORY_DB_MSG, err)
147-
self.assertEqual(out.count(sqlite3.sqlite_version + "\n"), 2)
147+
self.assertIn(sqlite3.sqlite_version, out)
148148
self.assertEndsWith(out, self.PS1)
149-
self.assertEqual(out.count(self.PS1), 3)
149+
self.assertEqual(out.count(self.PS1), 2)
150150
self.assertEqual(out.count(self.PS2), 0)
151151

152152
def test_interact_valid_sql(self):

0 commit comments

Comments
 (0)