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

Skip to content

Fix for shared axes diverging after setting tick markers #10651

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 84 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
de97fb2
Workaround wrong indentation of property lists
timhoffm Feb 1, 2018
b4df37d
Axes docstring updates on axh/vlines, axh/vspan
timhoffm Feb 25, 2018
613871a
Add notes section to Axes.boxplot
timhoffm Feb 25, 2018
d7162a5
Remove workarounds for numpy<1.10.
anntzer Feb 26, 2018
104e624
FIX: fix big number color resolution issue
jklymak Feb 26, 2018
4529d6f
TST: test for big floats in array being clipped properly if clim reset
jklymak Feb 26, 2018
2dd9d54
Make clip and force vmin and vmax to float64
jklymak Feb 26, 2018
332edf0
FIX convert 2-d PIL image
jklymak Feb 27, 2018
e0fab0d
TST convert 2-d PIL image
jklymak Feb 27, 2018
1279b84
Remove most APIs deprecated in 2.1.
anntzer Feb 26, 2018
3d64d65
FIX/ENH Constrained Layout: Make whether single parent colorbar w/ gr…
jklymak Feb 28, 2018
acc4e17
DOC: Update tutorial to explain colorbar API
jklymak Feb 28, 2018
9093edd
Simplify setupext by using globs.
anntzer Mar 1, 2018
59bbccb
ENH: autodecode pandas timestamps
jklymak Mar 1, 2018
83b11dd
Improve Figure docstrings
timhoffm Feb 25, 2018
67eb32b
Merge branch 'master' into doc-figure
timhoffm Mar 2, 2018
fda65b4
Fixes issue #8946
Mar 2, 2018
072dd2b
Merge pull request #10635 from anntzer/setupext-glob
jklymak Mar 2, 2018
7657f82
Mock is in stdlib in Py3.
anntzer Mar 3, 2018
c3c10fa
Minor fixes to event handling docs.
anntzer Mar 3, 2018
e54939a
Merge pull request #10629 from jklymak/fix-enh-colorbar-constrainedla…
efiring Mar 3, 2018
39bd5c2
Homebrew python is now python 3
jkseppan Mar 3, 2018
ef43424
Merge pull request #10656 from anntzer/eventhandlingdoc
timhoffm Mar 3, 2018
55e39ef
Share viewLim instead of calling set_ticks
Mar 3, 2018
8c7fab7
Use np.stack / np.column_stack where possible.
anntzer Feb 26, 2018
6385ccf
And some more broadcasting.
anntzer Feb 26, 2018
30ee515
Work towards removing reuse-of-axes-on-collision.
anntzer Mar 3, 2018
609e9bf
Merge pull request #10595 from timhoffm/doc-figure
anntzer Mar 3, 2018
ea02861
Merge pull request #10638 from jklymak/enh-autodecode-pandastimestamp
tacaswell Mar 3, 2018
6eef1c8
Merge pull request #10613 from jklymak/fix-color-resolution
tacaswell Mar 3, 2018
a472dab
Use deprecated decorator for Axes.set_color_style
timhoffm Mar 3, 2018
2c3809f
Use css to highlight deprecations in the docs.
timhoffm Mar 3, 2018
755e05e
Merge pull request #10661 from jkseppan/ci/brew-python
efiring Mar 3, 2018
0fbc50c
Improve Axes text/annotate related docstrings.
timhoffm Feb 25, 2018
5e00f69
More figure-related doc updates
timhoffm Mar 4, 2018
4f69414
FIX Speed up constrained layout
jklymak Mar 3, 2018
e8c651d
Merge pull request #10364 from timhoffm/workaround-property-list-indent
jklymak Mar 4, 2018
bad022e
Merge pull request #10660 from anntzer/axstack
timhoffm Mar 4, 2018
c1781ec
Merge pull request #10603 from anntzer/np110
efiring Mar 4, 2018
ebc3aa0
Merge pull request #10653 from anntzer/py3mockpytest
efiring Mar 4, 2018
cc48afd
Merge branch 'master' into remove-deprecated21
efiring Mar 4, 2018
1d45632
Delete GTK2 embedding examples.
QuLogic Feb 12, 2018
c0324d8
Explicitly require GTK 3.0 in GTK3 examples.
QuLogic Feb 12, 2018
34f6099
Remove deprecated backend methods.
QuLogic Feb 12, 2018
40e3879
Remove deprecated backends.
QuLogic Feb 12, 2018
56947bd
DOC: Convert remaining GTK2 examples to GTK3.
QuLogic Feb 12, 2018
962388f
Remove unused lineprops glade file.
QuLogic Feb 15, 2018
5d57a87
Update GTK example in the docs to GTK3.
QuLogic Feb 17, 2018
c4c40d0
Remove reference to delete gtktools toolkit.
QuLogic Feb 17, 2018
4987e3c
DOC: Add note that deprecated backends were removed.
QuLogic Feb 17, 2018
d6e93a3
Fix review items.
QuLogic Feb 17, 2018
2bfb08c
Merge pull request #10665 from timhoffm/deprecated-css
jklymak Mar 4, 2018
65ddd82
Merge pull request #10599 from timhoffm/axes-doc-updates
jklymak Mar 4, 2018
438aa08
Merge pull request #10608 from anntzer/remove-deprecated21
efiring Mar 4, 2018
5780fe7
Deprecation fixes.
anntzer Mar 4, 2018
3208322
Merge pull request #10672 from anntzer/fixes
efiring Mar 4, 2018
6a58143
Remove old nose testing code
dstansby Dec 3, 2017
241b2f2
Add API changes
dstansby Feb 15, 2018
b36367e
Move API change
dstansby Feb 19, 2018
7d85cf0
Merge pull request #9918 from dstansby/remove-nose-stuff
dstansby Mar 4, 2018
b5391ce
Merge pull request #10658 from jklymak/fix-speedup-constrainedlayout
tacaswell Mar 4, 2018
cfaa981
Some py3fication for matplotlib/__init__, setupext.
anntzer Mar 2, 2018
8cff894
figure_enter_event uses now LocationEvent instead of Event.
lkjell Nov 19, 2017
ce76875
backend gtk3, qt5/qt4 and wx pass in coordinates when entering figure.
lkjell Nov 19, 2017
3fdd527
bump warnings
lkjell Mar 2, 2018
64e37bc
Enable enter/leave notify for tk
lkjell Mar 4, 2018
03052fa
Py3fy font_manager.
anntzer Feb 18, 2018
4f5715a
Merge pull request #9814 from lkjell/fix_figure_enter_event
efiring Mar 5, 2018
42055ad
Merge pull request #10426 from QuLogic/delete-backends
efiring Mar 5, 2018
273e611
Rename #include guards without using reserved names.
QuLogic Feb 17, 2018
919bc86
Remove back-compat defined for old NumPy.
QuLogic Feb 17, 2018
14124a5
Remove C checks for PY3K macro.
QuLogic Feb 17, 2018
60adbd1
Remove C checks for old PY_*VERSION*.
QuLogic Feb 17, 2018
a186d7d
Remove outdated Py_TPFLAGS_HAVE_NEWBUFFER flag.
QuLogic Feb 17, 2018
d32e079
Add upstream link for PYOSINPUTHOOK_REPETITIVE.
QuLogic Feb 17, 2018
21c4f9e
Merge pull request #10507 from QuLogic/py3-c-ext
anntzer Mar 5, 2018
5df8380
Merge pull request #10666 from timhoffm/doc-figure-part-2
dstansby Mar 5, 2018
04f78be
Re-add of changes for flake8 and __cmp__ updates
TD22057 Mar 5, 2018
0e89377
Merge pull request #10522 from anntzer/py3fontmanager
jklymak Mar 5, 2018
4dfb105
Merge pull request #10652 from anntzer/py3setupextinit
timhoffm Mar 5, 2018
2898bfa
Merge pull request #10618 from TD22057/py3_jpl_units
jklymak Mar 5, 2018
a9abf15
Fixes issue #8946
Mar 2, 2018
f95e53c
Share viewLim instead of calling set_ticks
Mar 3, 2018
3892a0c
Merge remote-tracking branch 'origin/issue-8946-dev' into issue-8946-dev
Mar 5, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ install:
#
- conda create -q -n test-environment python=%PYTHON_VERSION%
msinttypes freetype=2.6 "libpng>=1.6.21,<1.7" zlib=1.2 tk=8.5
pip setuptools numpy mock pandas sphinx tornado
pip setuptools numpy pandas sphinx tornado
- activate test-environment
- echo %PYTHON_VERSION% %TARGET_ARCH%
# pytest-cov>=2.3.1 due to https://github.com/pytest-dev/pytest-cov/issues/124
Expand Down
17 changes: 5 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ env:
- secure: "dfjNqGKzQG5bu3FnDNwLG8H/C4QoieFo4PfFmZPdM2RY7WIzukwKFNT6kiDfOrpwt+2bR7FhzjOGlDECGtlGOtYPN8XuXGjhcP4a4IfakdbDfF+D3NPIpf5VlE6776k0VpvcZBTMYJKNFIMc7QPkOwjvNJ2aXyfe3hBuGlKJzQU="
- CYCLER=cycler
- DATEUTIL=python-dateutil
- MOCK=
- NOSE=
- NUMPY=numpy
- PANDAS=
Expand All @@ -71,7 +70,6 @@ matrix:
env:
- CYCLER=cycler==0.10
- DATEUTIL=python-dateutil==2.1
- MOCK=mock
- NOSE=nose
- NUMPY=numpy==1.10.0
- PANDAS='pandas<0.21.0'
Expand All @@ -87,7 +85,6 @@ matrix:
env: PRE=--pre
- os: osx
language: generic # https://github.com/travis-ci/travis-ci/issues/2312
env: MOCK=mock
only: master
cache:
# As for now travis caches only "$HOME/.cache/pip"
Expand All @@ -110,9 +107,8 @@ before_install:
export PATH=/usr/lib/ccache:$PATH
else
ci/travis/silence brew update
brew install python3 ffmpeg imagemagick mplayer ccache
# make 'python' mean 'python3'
ln -sf /usr/local/bin/python3 /usr/local/bin/python
brew upgrade python
brew install ffmpeg imagemagick mplayer ccache
hash -r
which python
python --version
Expand All @@ -123,21 +119,18 @@ before_install:
fi

install:
# Upgrade pip and setuptools. Mock has issues with the default version of
# setuptools
- |
# Setup environment
# Setup environment.
ccache -s
git describe
# Upgrade pip and setuptools and wheel to get as clean an install as possible
# Upgrade pip and setuptools and wheel to get as clean an install as possible.
python -mpip install --upgrade pip setuptools wheel
- |
# Install dependencies from PyPI
# Install dependencies from PyPI.
python -mpip install --upgrade $PRE \
codecov \
coverage \
$CYCLER \
$MOCK \
$NOSE \
$NUMPY \
$PANDAS \
Expand Down
7 changes: 3 additions & 4 deletions INSTALL.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ To run the test suite:
* extract the :file:`lib\\matplotlib\\tests` or
:file:`lib\\mpl_toolkits\\tests` directories from the source distribution;
* install test dependencies: `pytest <https://pypi.python.org/pypi/pytest>`_,
`mock <https://pypi.python.org/pypi/mock>`_, Pillow, MiKTeX, GhostScript,
ffmpeg, avconv, ImageMagick, and `Inkscape <https://inkscape.org/>`_;
* run ``py.test path\to\tests\directory``.
Pillow, MiKTeX, GhostScript, ffmpeg, avconv, ImageMagick, and `Inkscape
<https://inkscape.org/>`_;
* run ``pytest path\to\tests\directory``.


Third-party distributions of Matplotlib
Expand Down Expand Up @@ -159,7 +159,6 @@ optional Matplotlib backends and the capabilities they provide.
* `PyQt4 <https://pypi.python.org/pypi/PyQt4>`_ (>= 4.4) or
`PySide <https://pypi.python.org/pypi/PySide>`_: for the Qt4Agg backend;
* `PyQt5 <https://pypi.python.org/pypi/PyQt5>`_: for the Qt5Agg backend;
* :term:`pygtk` (>= 2.4): for the GTK and the GTKAgg backend;
* :term:`wxpython` (>= 2.9 or later): for the WX or WXAgg backend;
* `cairocffi <https://cairocffi.readthedocs.io/en/latest/>`__ (>=
v0.8): for cairo based backends;
Expand Down
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ include pytest.ini
include Makefile MANIFEST.in
include matplotlibrc.template setup.cfg.template
include setupext.py setup.py distribute_setup.py
include lib/matplotlib/mpl-data/lineprops.glade
include lib/matplotlib/mpl-data/matplotlibrc
include lib/matplotlib/mpl-data/images/*
include lib/matplotlib/mpl-data/fonts/ttf/*
Expand Down
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,16 @@ Testing

After installation, you can launch the test suite::

py.test
pytest

Or from the Python interpreter::

import matplotlib
matplotlib.test()

Consider reading http://matplotlib.org/devel/coding_guide.html#testing for
more information. Note that the test suite requires pytest and, on Python 2.7,
mock. Please install with pip or your package manager of choice.
Consider reading http://matplotlib.org/devel/coding_guide.html#testing for more
information. Note that the test suite requires pytest. Please install with pip
or your package manager of choice.

Contact
=======
Expand Down
1 change: 0 additions & 1 deletion doc-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ sphinx>=1.3,!=1.5.0,!=1.6.4
colorspacious
ipython
ipywidgets
mock
numpydoc>=0.4
pillow
sphinx-gallery>=0.1.12
17 changes: 13 additions & 4 deletions doc/_static/mpl.css
Original file line number Diff line number Diff line change
Expand Up @@ -373,14 +373,24 @@ div.warning {
border: 1px solid #eed3d7;
}

div.deprecated {
color: #606060;
background-color: #f0f0f0;
border: 1px solid #404040;
}

div.deprecated span.versionmodified {
color: #606060;
font-weight: bold;
}

div.green {
color: #468847;
background-color: #dff0d8;
border: 1px solid #d6e9c6;
}


div.admonition p, div.warning p {
div.admonition p, div.warning p, div.deprecated p {
margin: 0.5em 1em 0.5em 1em;
padding: 0;
}
Expand All @@ -401,15 +411,14 @@ div.warning p.admonition-title {
font-size: 14px;
}

div.admonition {
div.admonition, div.deprecated {
margin-bottom: 10px;
margin-top: 10px;
padding: 7px;
border-radius: 4px;
-moz-border-radius: 4px;
}


div.note {
background-color: #eee;
border: 1px solid #ccc;
Expand Down
2 changes: 0 additions & 2 deletions doc/api/axes_api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -509,8 +509,6 @@ Interactive
Axes.contains_point

Axes.get_cursor_data
Axes.get_cursor_props
Axes.set_cursor_props

Children
========
Expand Down
11 changes: 0 additions & 11 deletions doc/api/backend_gtkagg_api.rst

This file was deleted.

11 changes: 0 additions & 11 deletions doc/api/backend_gtkcairo_api.rst

This file was deleted.

2 changes: 0 additions & 2 deletions doc/api/index_backend_api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ backends
backend_tools_api.rst
backend_agg_api.rst
backend_cairo_api.rst
backend_gtkagg_api.rst
backend_gtkcairo_api.rst
backend_gtk3agg_api.rst
backend_gtk3cairo_api.rst
backend_nbagg_api.rst
Expand Down
7 changes: 7 additions & 0 deletions doc/api/next_api_changes/2018-02-15-DS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Deprecated methods removed from `matplotlib.testing`
----------------------------------------------------

The deprecated methods `knownfailureif` and `remove_text` have been removed
from :mod:`matplotlib.testing.decorators`.

The entire contents of `testing.noseclasses` have also been removed.
9 changes: 9 additions & 0 deletions doc/api/next_api_changes/2018-02-16-ES-removals.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Removal of deprecated backends
------------------------------

Deprecated backends have been removed:

* GTKAgg
* GTKCairo
* GTK
* GDK
5 changes: 5 additions & 0 deletions doc/api/next_api_changes/2018-02-18-AL-removals.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Removal of deprecated functions
```````````````````````````````
The following previously deprecated functions have been removed:
- ``matplotlib.font_manager.ttfdict_to_fnames``
- ``matplotlib.font_manager.weight_as_number``
33 changes: 33 additions & 0 deletions doc/api/next_api_changes/2018-02-26-AL-removals.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
Removal of deprecated APIs
``````````````````````````
The following deprecated API elements have been removed:

- ``matplotlib.checkdep_tex``, ``matplotlib.checkdep_xmllint``,
- ``backend_bases.IdleEvent``,
- ``cbook.converter``, ``cbook.tostr``, ``cbook.todatetime``, ``cbook.todate``,
``cbook.tofloat``, ``cbook.toint``, ``cbook.unique``,
``cbook.is_string_like``, ``cbook.is_sequence_of_strings``,
``cbook.is_scalar``, ``cbook.soundex``, ``cbook.dict_delall``,
``cbook.get_split_ind``, ``cbook.wrap``, ``cbook.get_recursive_filelist``,
``cbook.pieces``, ``cbook.exception_to_str``, ``cbook.allequal``,
``cbook.alltrue``, ``cbook.onetrue``, ``cbook.allpairs``, ``cbook.finddir``,
``cbook.reverse_dict``, ``cbook.restrict_dict``, ``cbook.issubclass_safe``,
``cbook.recursive_remove``, ``cbook.unmasked_index_ranges``,
``cbook.Null``, ``cbook.RingBuffer``, ``cbook.Sorter``, ``cbook.Xlator``,
- ``font_manager.weight_as_number``, ``font_manager.ttfdict_to_fnames``,
- ``pyplot.colors``,
- ``rcsetup.validate_negative_linestyle``,
``rcsetup.validate_negative_linestyle_legacy``,
- ``testing.compare.verifiers``, ``testing.compare.verify``,
- ``testing.decorators.knownfailureif``,
``testing.decorators.ImageComparisonTest.remove_text``,
- ``tests.assert_str_equal``, ``tests.test_tinypages.file_same``,
- ``texmanager.dvipng_hack_alpha``,
- ``_AxesBase.axesPatch``, ``_AxesBase.get_cursor_props``,
``_AxesBase.set_cursor_props``,
- ``_ImageBase.iterpnames``,
- ``Figure.figurePatch``,
- ``FigureCanvasBase.dynamic_update``, ``FigureCanvasBase.idle_event``,
``FigureCanvasBase.get_linestyle``, ``FigureCanvasBase.set_linestyle``,
- ``FigureCanvasQTAgg.blitbox``,
- passing ``frac`` to ``PolarAxes.set_theta_grids``,
2 changes: 0 additions & 2 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ def _check_deps():
"numpydoc": 'numpydoc',
"PIL.Image": 'pillow',
"sphinx_gallery": 'sphinx_gallery'}
if sys.version_info < (3, 3):
names["mock"] = 'mock'
missing = []
for name in names:
try:
Expand Down
5 changes: 2 additions & 3 deletions doc/devel/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -142,18 +142,17 @@ Additionally you will need to copy :file:`setup.cfg.template` to
In either case you can then run the tests to check your work
environment is set up properly::

python tests.py
pytest

.. _pytest: http://doc.pytest.org/en/latest/
.. _pep8: https://pep8.readthedocs.io/en/latest/
.. _mock: https://docs.python.org/dev/library/unittest.mock.html
.. _Ghostscript: https://www.ghostscript.com/
.. _Inkscape: https://inkscape.org>

.. note::

**Additional dependencies for testing**: pytest_ (version 3.1 or later),
mock_ (if Python 2), Ghostscript_, Inkscape_
Ghostscript_, Inkscape_

.. seealso::

Expand Down
1 change: 0 additions & 1 deletion doc/devel/documenting_mpl.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ requirements that are needed to build the documentation. They are listed in
* Sphinx>=1.3, !=1.5.0, !=1.6.4
* colorspacious
* IPython
* mock
* numpydoc>=0.4
* Pillow
* sphinx-gallery>=0.1.12
Expand Down
12 changes: 5 additions & 7 deletions doc/devel/testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ Matplotlib's testing infrastructure depends on pytest_. The tests are in
infrastructure are in :mod:`matplotlib.testing`.

.. _pytest: http://doc.pytest.org/en/latest/
.. _mock: https://docs.python.org/3/library/unittest.mock.html
.. _Ghostscript: https://www.ghostscript.com/
.. _Inkscape: https://inkscape.org
.. _pytest-cov: https://pytest-cov.readthedocs.io/en/latest/
Expand All @@ -27,7 +26,6 @@ local FreeType build
The following software is required to run the tests:

- pytest_ (>=3.1)
- mock_, when running Python 2
- Ghostscript_ (to render PDF files)
- Inkscape_ (to render SVG files)

Expand All @@ -44,7 +42,7 @@ Running the tests

Running the tests is simple. Make sure you have pytest installed and run::

py.test
pytest

or::

Expand Down Expand Up @@ -74,22 +72,22 @@ To run a single test from the command line, you can provide a file path,
optionally followed by the function separated by two colons, e.g., (tests do
not need to be installed, but Matplotlib should be)::

py.test lib/matplotlib/tests/test_simplification.py::test_clipping
pytest lib/matplotlib/tests/test_simplification.py::test_clipping

or, if tests are installed, a dot-separated path to the module, optionally
followed by the function separated by two colons, such as::

py.test --pyargs matplotlib.tests.test_simplification::test_clipping
pytest --pyargs matplotlib.tests.test_simplification::test_clipping

If you want to run the full test suite, but want to save wall time try
running the tests in parallel::

py.test --verbose -n 5
pytest --verbose -n 5

Depending on your version of Python and pytest-xdist, you may need to set
``PYTHONHASHSEED`` to a fixed value when running in parallel::

PYTHONHASHSEED=0 py.test --verbose -n 5
PYTHONHASHSEED=0 pytest --verbose -n 5

An alternative implementation that does not look at command line arguments
and works from within Python is to run the tests from the Matplotlib library
Expand Down
11 changes: 2 additions & 9 deletions doc/glossary/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,9 @@ Glossary
features of PyGObject. However Matplotlib does not use any of these
missing features.

pygtk
`pygtk <http://www.pygtk.org/>`_ provides python wrappers for
the :term:`GTK` widgets library for use with the GTK or GTKAgg
backend. Widely used on linux, and is often packages as
'python-gtk2'

PyGObject
Like :term:`pygtk`, `PyGObject <http://www.pygtk.org/>` provides
python wrappers for the :term:`GTK` widgets library; unlike pygtk,
PyGObject wraps GTK3 instead of the now obsolete GTK2.
`PyGObject <http://www.pygtk.org/>`_ provides Python wrappers for the
:term:`GTK` widgets library

pyqt
`pyqt <https://wiki.python.org/moin/PyQt>`_ provides python
Expand Down
6 changes: 1 addition & 5 deletions doc/sphinxext/mock_gui_toolkits.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import sys

try:
from unittest.mock import MagicMock
except ImportError:
from mock import MagicMock
from unittest.mock import MagicMock


class MyCairoCffi(MagicMock):
Expand Down
Loading