megamanfx / grit-i18n

Automatically exported from code.google.com/p/grit-i18n
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

chrome_scaled_image unit tests failing on Windows #15

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
======================================================================
FAIL: testLowresFallback 
(grit.gather.chrome_scaled_image_unittest.ChromeScaledImageUnittest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "S:\src\grit-i18n\grit\gather\chrome_scaled_image_unittest.py", line 162, in testLowresFallback
    _RunBuildTest(*args, skip_rc=True)
  File "S:\src\grit-i18n\grit\gather\chrome_scaled_image_unittest.py", line 109, in _RunBuildTest
    build.RcBuilder().Run(options, [])
  File "S:\src\grit-i18n\grit\tool\build.py", line 149, in Run
    self.Process()
  File "S:\src\grit-i18n\grit\tool\build.py", line 268, in Process
    self.ProcessNode(self.res, output, outfile)
  File "S:\src\grit-i18n\grit\tool\build.py", line 204, in ProcessNode
    formatted = formatter(node, output_node.GetLanguage(), output_dir=base_dir)
  File "S:\src\grit-i18n\grit\format\data_pack.py", line 46, in Format
    id, value = node.GetDataPackPair(lang, UTF8)
  File "S:\src\grit-i18n\grit\node\structure.py", line 168, in GetDataPackPair
    data = self.gatherer.GetData(lang, encoding)
  File "S:\src\grit-i18n\grit\gather\chrome_scaled_image.py", line 136, in GetData
    data = _MoveSpecialChunksToFront(data)
  File "S:\src\grit-i18n\grit\gather\chrome_scaled_image.py", line 53, in _MoveSpecialChunksToFront
    for chunk in _ChunkifyPNG(data):
  File "S:\src\grit-i18n\grit\gather\chrome_scaled_image.py", line 67, in _ChunkifyPNG
    assert data.startswith(_PNG_MAGIC)
AssertionError

======================================================================
FAIL: testNormalFallback 
(grit.gather.chrome_scaled_image_unittest.ChromeScaledImageUnittest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "S:\src\grit-i18n\grit\gather\chrome_scaled_image_unittest.py", line 134, in testNormalFallback
    'tactile_123_percent': set([t123a, d123b]),
  File "S:\src\grit-i18n\grit\gather\chrome_scaled_image_unittest.py", line 109, in _RunBuildTest
    build.RcBuilder().Run(options, [])
  File "S:\src\grit-i18n\grit\tool\build.py", line 149, in Run
    self.Process()
  File "S:\src\grit-i18n\grit\tool\build.py", line 268, in Process
    self.ProcessNode(self.res, output, outfile)
  File "S:\src\grit-i18n\grit\tool\build.py", line 204, in ProcessNode
    formatted = formatter(node, output_node.GetLanguage(), output_dir=base_dir)
  File "S:\src\grit-i18n\grit\format\data_pack.py", line 46, in Format
    id, value = node.GetDataPackPair(lang, UTF8)
  File "S:\src\grit-i18n\grit\node\structure.py", line 168, in GetDataPackPair
    data = self.gatherer.GetData(lang, encoding)
  File "S:\src\grit-i18n\grit\gather\chrome_scaled_image.py", line 136, in GetData
    data = _MoveSpecialChunksToFront(data)
  File "S:\src\grit-i18n\grit\gather\chrome_scaled_image.py", line 53, in _MoveSpecialChunksToFront
    for chunk in _ChunkifyPNG(data):
  File "S:\src\grit-i18n\grit\gather\chrome_scaled_image.py", line 67, in _ChunkifyPNG
    assert data.startswith(_PNG_MAGIC)
AssertionError

Original issue reported on code.google.com by joi@chromium.org on 10 Apr 2013 at 11:18

GoogleCodeExporter commented 9 years ago
In case it matters: This is with Python 2.6.2

Original comment by joi@chromium.org on 10 Apr 2013 at 11:19