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

Skip to content

Commit b013801

Browse files
[BUG FIX] TestgresTests::test_safe_psql__expect_error uses rm_carriage_returns
It fixes a problem with this test on Windows.
1 parent 31c7bce commit b013801

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_simple.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ def test_safe_psql__expect_error(self):
327327

328328
# ---------
329329
res = node.safe_psql("select 1;", expect_error=False)
330-
self.assertEqual(res, b'1\n')
330+
self.assertEqual(rm_carriage_returns(res), b'1\n')
331331

332332
def test_transactions(self):
333333
with get_new_node().init().start() as node:

0 commit comments

Comments
 (0)