Skip to content

Commit e1f7110

Browse files
committed
Skip test if before 2.0
1 parent e64c2f3 commit e1f7110

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/nuodb_basic_test.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from .nuodb_base import NuoBase
1919
from .mock_tzs import EscapingTimestamp
2020
from .mock_tzs import Local
21-
from pynuodb.exception import DataError
21+
from pynuodb.exception import DataError, ProgrammingError
2222

2323

2424
class NuoDBBasicTest(NuoBase):
@@ -462,7 +462,11 @@ def test_connection_properties(self):
462462
#Get NuoDB release
463463
con = self._connect()
464464
cursor = con.cursor()
465-
cursor.execute("select getReleaseversion() from dual")
465+
try:
466+
cursor.execute("select getReleaseversion() from dual")
467+
except ProgrammingError as pe:
468+
return #2.0 or earlier, skip test
469+
466470
version = cursor.fetchone()[0]
467471
majorVersion = version[0]
468472
minorVersion = version[2]

0 commit comments

Comments
 (0)