Skip the rendering test on macOS

macOS is underpowered junk.
This commit is contained in:
Kovid Goyal 2017-11-05 17:36:11 +05:30
parent d05ea312ef
commit a8bca1c119
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 4 additions and 1 deletions

View File

@ -185,7 +185,7 @@
} else Py_CLEAR(self);
} else {
Py_CLEAR(self);
PyErr_NoMemory();
if (!PyErr_Occurred()) PyErr_NoMemory();
}
}
return (PyObject*)self;

View File

@ -3,11 +3,13 @@
# License: GPL v3 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net>
from collections import OrderedDict
import unittest
from kitty.fast_data_types import (
set_send_sprite_to_gpu, sprite_map_set_layout,
sprite_map_set_limits, test_render_line, test_sprite_position_for
)
from kitty.constants import isosx
from kitty.fonts.box_drawing import box_chars
from kitty.fonts.render import render_string, set_font_family
@ -52,6 +54,7 @@ def test_box_drawing(self):
test_render_line(line)
self.assertEqual(len(self.sprites), prerendered + len(box_chars))
@unittest.skipIf(isosx, 'macOS is too underpowered')
def test_rendering(self):
text = 'He\u0347\u0305llo\u0341, w\u0302or\u0306l\u0354d!'
cells = render_string(text)[-1]