mapnik / Cascadenik

Cascading Sheets Of Style for Mapnik
http://github.com/mapnik/Cascadenik/wiki/Cascadenik
BSD 3-Clause "New" or "Revised" License
111 stars 20 forks source link

Python 2.5.1 os x (leopard) test failures with relative-paths branch #8

Closed springmeyer closed 13 years ago

springmeyer commented 13 years ago
Cascadenik spring$ python test.py 
..................E....
Cascadenik debug: Warning, FontSets will be ignored as they are not yet supported in Mapnik via Python...
.....E..................................FF.F.F...........................................................................................
======================================================================
ERROR: testCompile1 (__main__.CompileXMLTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test.py", line 1754, in testCompile1
    cfg = tempfile.NamedTemporaryFile('w', delete=False)
TypeError: NamedTemporaryFile() got an unexpected keyword argument 'delete'

======================================================================
ERROR: testLocalDefaultsFromFile (__main__.DataSourcesTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test.py", line 1602, in testLocalDefaultsFromFile
    cfg = tempfile.NamedTemporaryFile('w', delete=False)
TypeError: NamedTemporaryFile() got an unexpected keyword argument 'delete'

======================================================================
FAIL: testLocalLinkedSheetPaths (__main__.RelativePathTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test.py", line 2352, in testLocalLinkedSheetPaths
    assert not os.path.isabs(shp_path)
AssertionError

======================================================================
FAIL: testLocalizedPaths (__main__.RelativePathTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test.py", line 2156, in testLocalizedPaths
    assert not os.path.isabs(img_path)
AssertionError

======================================================================
FAIL: testRelativePaths (__main__.RelativePathTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test.py", line 2228, in testRelativePaths
    assert not os.path.isabs(img_path)
AssertionError

======================================================================
FAIL: testRemotePaths (__main__.RelativePathTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test.py", line 2316, in testRemotePaths
    assert not os.path.isabs(img_path)
AssertionError

----------------------------------------------------------------------
Ran 160 tests in 23.834s

FAILED (failures=4, errors=2)
springmeyer commented 13 years ago

this has been fixed by adding a py25 relpath implementation