Skip to content

Commit

Permalink
skip tests with arrays for every py27 build
Browse files Browse the repository at this point in the history
  • Loading branch information
swistakm committed May 19, 2019
1 parent 1416693 commit 21fbc66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,9 @@ def exec_snippet(self, source):
if (
"import array" in source
and sys.version_info < (3, 0)
and sys.platform == "win32"
):
pytest.skip(
"array.array does not work properly under win32 as memory view"
"array.array does not work properly under py27 as memory view"
)

code = compile(source, '<str>', 'exec')
Expand Down
4 changes: 2 additions & 2 deletions imgui/core.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -5258,7 +5258,7 @@ def plot_lines(
from array import array
from math import sin
# NOTE: this example will not work under py27 due do incompatible
# implementation of array and memmory view (at least under win)
# implementation of array and memmory view.
plot_values = array('f', [sin(x * 0.1) for x in range(100)])
imgui.begin("Plot example")
Expand Down Expand Up @@ -5350,7 +5350,7 @@ def plot_histogram(
from random import random
# NOTE: this example will not work under py27 due do incompatible
# implementation of array and memmory view (at least under win)
# implementation of array and memmory view.
histogram_values = array('f', [random() for _ in range(20)])
imgui.begin("Plot example")
Expand Down

0 comments on commit 21fbc66

Please sign in to comment.