summaryrefslogtreecommitdiff
path: root/src/unitTests.py
diff options
context:
space:
mode:
authorptmcg <ptmcg@9bf210a0-9d2d-494c-87cf-cfb32e7dff7b>2016-05-11 14:14:12 +0000
committerptmcg <ptmcg@9bf210a0-9d2d-494c-87cf-cfb32e7dff7b>2016-05-11 14:14:12 +0000
commit155aad95a2b41ac3bc8181594abe554c34aa07fc (patch)
tree1208c799ed2e3bb4cb35a70ecd78d8f4f6b4cdad /src/unitTests.py
parent77e6b5e86ea87752139190561a74435ccb86fe5a (diff)
downloadpyparsing-155aad95a2b41ac3bc8181594abe554c34aa07fc.tar.gz
Better handling of Win vs. Linux line endings in ParseConfigFileTest, and case-sensitive Setup.ini filename
git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@338 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
Diffstat (limited to 'src/unitTests.py')
-rw-r--r--src/unitTests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/unitTests.py b/src/unitTests.py
index a6e5ae1..7edbe8b 100644
--- a/src/unitTests.py
+++ b/src/unitTests.py
@@ -178,7 +178,7 @@ class ParseConfigFileTest(ParseTestCase):
def test(fnam,numToks,resCheckList):
print_("Parsing",fnam,"...", end=' ')
- iniFileLines = "\n".join([ lin for lin in open(fnam) ])
+ iniFileLines = "\n".join(open(fnam).read().splitlines())
iniData = configParse.inifile_BNF().parseString( iniFileLines )
print_(len(flatten(iniData.asList())))
#~ pprint.pprint( iniData.asList() )
@@ -198,7 +198,7 @@ class ParseConfigFileTest(ParseTestCase):
("users.mod_scheme","'QPSK'"),
("users.Na", "K+2") ]
)
- test("examples/setup.ini", 125,
+ test("examples/Setup.ini", 125,
[ ("Startup.audioinf", "M3i"),
("Languages.key1", "0x0003"),
("test.foo","bar") ] )