Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 00c63a3

Browse files
committed
pypy: Skip tests that require CPython.
These tests look at reference counts of objects, which are meaningless for PyPy (and also Jython).
1 parent d0510fd commit 00c63a3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lib/matplotlib/tests/test_quiver.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
import platform
2+
import sys
3+
14
import numpy as np
25
import pytest
3-
import sys
6+
47
from matplotlib import pyplot as plt
58
from matplotlib.testing.decorators import image_comparison
69

@@ -15,6 +18,8 @@ def draw_quiver(ax, **kw):
1518
return Q
1619

1720

21+
@pytest.mark.skipif(platform.python_implementation() != 'CPython',
22+
reason='Requires CPython')
1823
def test_quiver_memory_leak():
1924
fig, ax = plt.subplots()
2025

@@ -27,6 +32,8 @@ def test_quiver_memory_leak():
2732
assert sys.getrefcount(ttX) == 2
2833

2934

35+
@pytest.mark.skipif(platform.python_implementation() != 'CPython',
36+
reason='Requires CPython')
3037
def test_quiver_key_memory_leak():
3138
fig, ax = plt.subplots()
3239

0 commit comments

Comments
 (0)