Skip to content

Commit b561523

Browse files
committed
fix broken build
1 parent c6407aa commit b561523

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/base.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import pyexcel
22
import os
3+
from nose.tools import raises
34

45

56
def create_sample_file1(file):
@@ -139,11 +140,14 @@ def test_formats(self):
139140
# int
140141
assert self.data["Sheet1"][0][6] == "Int"
141142
assert self.data["Sheet1"][1][6] == 3
142-
assert self.data["Sheet1"][2][6] == ""
143143
assert self.data["Sheet1"][4][6] == 11
144144
# Scientifed not supported
145145
assert self.data["Sheet1"][1][7] == 100000
146146
# Fraction
147147
assert self.data["Sheet1"][1][8] == 1.25
148148
# Text
149149
assert self.data["Sheet1"][1][9] == "abc"
150+
151+
@raises(IndexError)
152+
def test_no_excessive_trailing_columns(self):
153+
assert self.data["Sheet1"][2][6] == ""

0 commit comments

Comments
 (0)