Skip to content

Commit 661ea78

Browse files
committed
Merge pull request #108 from tvincentNuoDB/master
Added Python 3.0+ testing
2 parents 924a054 + 7f7a96b commit 661ea78

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.travis.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ language: python
22

33
python:
44
- "2.7"
5+
- "3.4"
56

67
env:
78
- NUODB_VERSION=2.1 NUOVERSION=2.1.1.10 NUODB_ADD_DOMAIN_PASS=yes NUODB_START_AGENT=yes
@@ -22,12 +23,8 @@ before_install:
2223
- if [[ "${NUODB_ADD_DOMAIN_PASS}" == "yes" ]] ; then sudo chmod 777 /opt/nuodb/etc/default.properties; echo "domainPassword = bird" >> /opt/nuodb/etc/default.properties; sudo chmod 600 /opt/nuodb/etc/default.properties; fi
2324
- if [[ "${NUODB_START_AGENT}" == "yes" ]]; then sudo service nuoagent start; fi
2425

25-
install:
26-
- pip install -r requirements.txt
27-
2826
script:
2927
- make all
30-
- py.test --cov=pynuodb --cov-report term-missing
3128

3229
after_failure:
3330
- cat /var/log/nuodb/agent.log

tests/nuodb_basic_test.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -791,10 +791,12 @@ def test_param_date_error(self):
791791
cursor.execute("create table typetest (id integer GENERATED ALWAYS AS IDENTITY, date_col date)")
792792

793793
test_vals = (pynuodb.Date(1800, 1, 1),)
794-
795-
with self.assertRaises(pynuodb.DataError):
794+
try:
796795
cursor.execute("insert into typetest (date_col) values (?)", test_vals)
797-
796+
except pynuodb.DataError:
797+
pass
798+
except:
799+
self.fail()
798800

799801
if __name__ == '__main__':
800802
unittest.main()

0 commit comments

Comments
 (0)