Skip to content
This repository was archived by the owner on Jun 7, 2019. It is now read-only.

Commit 2a445bf

Browse files
committed
changed example test
1 parent d300287 commit 2a445bf

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.travis.yml

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

33
python:
4-
- "2.6"
5-
- "2.7"
64
- "3.2"
75
- "3.3"
86
- "3.4"
@@ -19,6 +17,7 @@ install:
1917
- pip install coveralls
2018

2119
script:
20+
- python ./test/example.py
2221
- coverage run --source=python-cobol setup.py test
2322

2423
after_success:

test/example.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
3+
import sys
4+
sys.path.insert(0, './../python-cobol')
5+
36
import cobol
47

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

0 commit comments

Comments
 (0)