Skip to content

Commit 8b7d0d1

Browse files
committed
Fix tests for python 2
1 parent 7707844 commit 8b7d0d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: tests/test_simple.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import tempfile
88
import testgres
99
import time
10+
import six
1011
import unittest
1112

1213
import logging.config
@@ -859,7 +860,7 @@ def test_version_management(self):
859860

860861
version = get_pg_version()
861862
with get_new_node() as node:
862-
self.assertTrue(isinstance(version, str))
863+
self.assertTrue(isinstance(version, six.string_types))
863864
self.assertTrue(isinstance(node.version, PgVer))
864865
self.assertTrue(node.version == version)
865866

0 commit comments

Comments
 (0)