Skip to content

Commit

Permalink
changed example test
Browse files Browse the repository at this point in the history
  • Loading branch information
royopa committed Feb 12, 2017
1 parent d300287 commit 2a445bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
language: python

python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
- "3.4"
Expand All @@ -19,6 +17,7 @@ install:
- pip install coveralls

script:
- python ./test/example.py
- coverage run --source=python-cobol setup.py test

after_success:
Expand Down
5 changes: 4 additions & 1 deletion test/example.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
sys.path.insert(0, './../python-cobol')

import cobol

with open("example.cbl",'r') as f:
for row in cobol.process_cobol(f.readlines()):
print row['name']
print(row['name'])

0 comments on commit 2a445bf

Please sign in to comment.