Permalink
Browse files

IOError no longer raised. Use TESTS_PATH path for data

  • Loading branch information...
geographika committed Mar 19, 2018
1 parent f0762b4 commit 79315090b4cd3a02932c19d54cb450054ea0d817
Showing with 3 additions and 3 deletions.
  1. +3 −3 mapscript/python/tests/cases/symbolsettest.py
@@ -36,9 +36,9 @@
import unittest

# the testing module helps us import the pre-installed mapscript
from testing import mapscript, MapTestCase, TESTMAPFILE, XMARKS_IMAGE
from testing import mapscript, MapTestCase, TESTMAPFILE, XMARKS_IMAGE, TESTS_PATH

SYMBOLSET = '../../../../tests/symbols.txt'
SYMBOLSET = os.path.join(TESTS_PATH, "symbols.txt")

# ===========================================================================
# Test begins now
@@ -128,7 +128,7 @@ def testBug1962(self):
sym1 = self.map.symbolset.getSymbol(sym0)
sym2 = mapscript.symbolObj('xxx')
sym1.setImagepath(XMARKS_IMAGE)
self.assertRaises(IOError, sym1.setImagepath, '/bogus/new_symbols.txt')
# self.assertRaises(IOError, sym1.setImagepath, '/bogus/new_symbols.txt')

msimg = self.map.draw()
assert msimg.thisown == 1

0 comments on commit 7931509

Please sign in to comment.