[Bug 1548797] Review Request: python-cartopy - Cartographic Python library with Matplotlib visualisations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=1548797

Robert-André Mauchin <zebob.m@xxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zebob.m@xxxxxxxxx



--- Comment #3 from Robert-André Mauchin <zebob.m@xxxxxxxxx> ---
Got tests failures, all the ones with text in it:

+ pytest-2 --doctest-modules --pyargs cartopy -m 'not network'
============================= test session starts
==============================
platform linux2 -- Python 2.7.14, pytest-3.2.3, py-1.5.2, pluggy-0.4.0
rootdir: /builddir/build/BUILD/Cartopy-0.16.0, inifile: setup.cfg
collected 333 items
.
........s.........................................................x................................................................................................................................F............................................................................FFFFF..
=================================== FAILURES
===================================
_______________________________ test_grid_labels
_______________________________
args = (), kwargs = {}, orig_backend = 'agg'
style_context = <function context at 0x7fa735764cf8>, r = None
fig_managers = [<matplotlib.backend_bases.FigureManagerBase object at
0x7fa72ba1ddd0>]
manager = <matplotlib.backend_bases.FigureManagerBase object at 0x7fa72ba1ddd0>
figures = [<matplotlib.figure.Figure object at 0x7fa723be71d0>]
figure = <matplotlib.figure.Figure object at 0x7fa723be71d0>
    def wrapped(*args, **kwargs):
        orig_backend = plt.get_backend()
        plt.switch_backend('agg')
        mpl_setup()

        if pyplot_helpers.Gcf.figs:
            warnings.warn('Figures existed before running the %s %s test.'
                          ' All figures should be closed after they run. '
                          'They will be closed automatically now.' %
                          (mod_name, test_name))
            pyplot_helpers.Gcf.destroy_all()

        if MPL_VERSION >= '2':
            style_context = mpl.style.context
        else:
            @contextlib.contextmanager
            def style_context(style, after_reset=False):
                yield

        with style_context('classic'):
            r = test_func(*args, **kwargs)

            fig_managers = pyplot_helpers.Gcf._activeQue
            figures = [manager.canvas.figure for manager in fig_managers]

            try:
>               self.run_figure_comparisons(figures, test_name=mod_name)
../../BUILDROOT/python-cartopy-0.16.0-1.fc29.x86_64/usr/lib64/python2.7/site-packages/cartopy/tests/mpl/__init__.py:237: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../BUILDROOT/python-cartopy-0.16.0-1.fc29.x86_64/usr/lib64/python2.7/site-packages/cartopy/tests/mpl/__init__.py:165:
in run_figure_comparisons
    self.do_compare(result_path, expected_path, self.tolerance)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
self = <cartopy.tests.mpl.ImageTesting object at 0x7fa72e550cd0>
result_fname =
'/builddir/build/BUILD/Cartopy-0.16.0/cartopy_test_output/test_gridliner/result-gridliner_labels.png'
expected_fname =
'/builddir/build/BUILDROOT/python-cartopy-0.16.0-1.fc29.x86_64/usr/lib64/python2.7/site-packages/cartopy/tests/mpl/baseline_images/mpl/test_gridliner/gridliner_labels.png'
tol = 0.5
    def do_compare(self, result_fname, expected_fname, tol):
        """
            Runs the comparison of the result file with the expected file.

            If an RMS difference greater than ``tol`` is found an assertion
            error is raised with an appropriate message with the paths to
            the files concerned.

            """
        if not os.path.exists(expected_fname):
            warnings.warn('Created image in %s' % expected_fname)
            shutil.copy2(result_fname, expected_fname)

        err = mcompare.compare_images(expected_fname, result_fname,
                                      tol=tol, in_decorator=True)

        if err:
            msg = ('Images were different (RMS: %s).\n%s %s %s\nConsider '
                   'running idiff to inspect these differences.'
                   '' % (err['rms'], err['actual'],
                         err['expected'], err['diff']))
>           assert False, msg
E           AssertionError: Images were different (RMS: 20.2243249887).
E          
/builddir/build/BUILD/Cartopy-0.16.0/cartopy_test_output/test_gridliner/result-gridliner_labels.png
/builddir/build/BUILDROOT/python-cartopy-0.16.0-1.fc29.x86_64/usr/lib64/python2.7/site-packages/cartopy/tests/mpl/baseline_images/mpl/test_gridliner/gridliner_labels.png
/builddir/build/BUILD/Cartopy-0.16.0/cartopy_test_output/test_gridliner/result-gridliner_labels-failed-diff.png
E           Consider running idiff to inspect these differences.
../../BUILDROOT/python-cartopy-0.16.0-1.fc29.x86_64/usr/lib64/python2.7/site-packages/cartopy/tests/mpl/__init__.py:199:
AssertionError
_________________________ test_set_yticks_cylindrical
__________________________
args = (), kwargs = {}, orig_backend = 'agg'
style_context = <function context at 0x7fa735764cf8>, r = None
fig_managers = [<matplotlib.backend_bases.FigureManagerBase object at
0x7fa72353a8d0>]
manager = <matplotlib.backend_bases.FigureManagerBase object at 0x7fa72353a8d0>
figures = [<matplotlib.figure.Figure object at 0x7fa7233587d0>]
figure = <matplotlib.figure.Figure object at 0x7fa7233587d0>
    def wrapped(*args, **kwargs):
        orig_backend = plt.get_backend()
        plt.switch_backend('agg')
        mpl_setup()

        if pyplot_helpers.Gcf.figs:
            warnings.warn('Figures existed before running the %s %s test.'
                          ' All figures should be closed after they run. '
                          'They will be closed automatically now.' %
                          (mod_name, test_name))
            pyplot_helpers.Gcf.destroy_all()

        if MPL_VERSION >= '2':
            style_context = mpl.style.context
        else:
            @contextlib.contextmanager
            def style_context(style, after_reset=False):
                yield

        with style_context('classic'):
            r = test_func(*args, **kwargs)

            fig_managers = pyplot_helpers.Gcf._activeQue
            figures = [manager.canvas.figure for manager in fig_managers]

            try:
>               self.run_figure_comparisons(figures, test_name=mod_name)
../../BUILDROOT/python-cartopy-0.16.0-1.fc29.x86_64/usr/lib64/python2.7/site-packages/cartopy/tests/mpl/__init__.py:237: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../BUILDROOT/python-cartopy-0.16.0-1.fc29.x86_64/usr/lib64/python2.7/site-packages/cartopy/tests/mpl/__init__.py:165:
in run_figure_comparisons
    self.do_compare(result_path, expected_path, self.tolerance)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
self = <cartopy.tests.mpl.ImageTesting object at 0x7fa72e479550>
result_fname =
'/builddir/build/BUILD/Cartopy-0.16.0/cartopy_test_output/test_ticks/result-yticks_cylindrical.png'
expected_fname =
'/builddir/build/BUILDROOT/python-cartopy-0.16.0-1.fc29.x86_64/usr/lib64/python2.7/site-packages/cartopy/tests/mpl/baseline_images/mpl/test_ticks/yticks_cylindrical.png'
tol = 0.5
    def do_compare(self, result_fname, expected_fname, tol):
        """
            Runs the comparison of the result file with the expected file.

            If an RMS difference greater than ``tol`` is found an assertion
            error is raised with an appropriate message with the paths to
            the files concerned.

            """
        if not os.path.exists(expected_fname):
            warnings.warn('Created image in %s' % expected_fname)
            shutil.copy2(result_fname, expected_fname)

        err = mcompare.compare_images(expected_fname, result_fname,
                                      tol=tol, in_decorator=True)

        if err:
            msg = ('Images were different (RMS: %s).\n%s %s %s\nConsider '
                   'running idiff to inspect these differences.'
                   '' % (err['rms'], err['actual'],
                         err['expected'], err['diff']))
>           assert False, msg
E           AssertionError: Images were different (RMS: 3.83341883963).
E          
/builddir/build/BUILD/Cartopy-0.16.0/cartopy_test_output/test_ticks/result-yticks_cylindrical.png
/builddir/build/BUILDROOT/python-cartopy-0.16.0-1.fc29.x86_64/usr/lib64/python2.7/site-packages/cartopy/tests/mpl/baseline_images/mpl/test_ticks/yticks_cylindrical.png
/builddir/build/BUILD/Cartopy-0.16.0/cartopy_test_output/test_ticks/result-yticks_cylindrical-failed-diff.png
E           Consider running idiff to inspect these differences.
../../BUILDROOT/python-cartopy-0.16.0-1.fc29.x86_64/usr/lib64/python2.7/site-packages/cartopy/tests/mpl/__init__.py:199:
AssertionError
_______________________________ test_set_xyticks
_______________________________
args = (), kwargs = {}, orig_backend = 'agg'
style_context = <function context at 0x7fa735764cf8>, r = None
fig_managers = [<matplotlib.backend_bases.FigureManagerBase object at
0x7fa72b9eee10>]
manager = <matplotlib.backend_bases.FigureManagerBase object at 0x7fa72b9eee10>
figures = [<matplotlib.figure.Figure object at 0x7fa7234bc5d0>]
figure = <matplotlib.figure.Figure object at 0x7fa7234bc5d0>
    def wrapped(*args, **kwargs):
        orig_backend = plt.get_backend()
        plt.switch_backend('agg')
        mpl_setup()

        if pyplot_helpers.Gcf.figs:
            warnings.warn('Figures existed before running the %s %s test.'
                          ' All figures should be closed after they run. '
                          'They will be closed automatically now.' %
                          (mod_name, test_name))
            pyplot_helpers.Gcf.destroy_all()

        if MPL_VERSION >= '2':
            style_context = mpl.style.context
        else:
            @contextlib.contextmanager
            def style_context(style, after_reset=False):
                yield

        with style_context('classic'):
            r = test_func(*args, **kwargs)

            fig_managers = pyplot_helpers.Gcf._activeQue
            figures = [manager.canvas.figure for manager in fig_managers]

            try:
>               self.run_figure_comparisons(figures, test_name=mod_name)
../../BUILDROOT/python-cartopy-0.16.0-1.fc29.x86_64/usr/lib64/python2.7/site-packages/cartopy/tests/mpl/__init__.py:237: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../BUILDROOT/python-cartopy-0.16.0-1.fc29.x86_64/usr/lib64/python2.7/site-packages/cartopy/tests/mpl/__init__.py:165:
in run_figure_comparisons
    self.do_compare(result_path, expected_path, self.tolerance)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
self = <cartopy.tests.mpl.ImageTesting object at 0x7fa72e479350>
result_fname =
'/builddir/build/BUILD/Cartopy-0.16.0/cartopy_test_output/test_ticks/result-xyticks.png'
expected_fname =
'/builddir/build/BUILDROOT/python-cartopy-0.16.0-1.fc29.x86_64/usr/lib64/python2.7/site-packages/cartopy/tests/mpl/baseline_images/mpl/test_ticks/xyticks.png'
tol = 0.5
    def do_compare(self, result_fname, expected_fname, tol):
        """
            Runs the comparison of the result file with the expected file.

            If an RMS difference greater than ``tol`` is found an assertion
            error is raised with an appropriate message with the paths to
            the files concerned.

            """
        if not os.path.exists(expected_fname):
            warnings.warn('Created image in %s' % expected_fname)
            shutil.copy2(result_fname, expected_fname)

        err = mcompare.compare_images(expected_fname, result_fname,
                                      tol=tol, in_decorator=True)

        if err:
            msg = ('Images were different (RMS: %s).\n%s %s %s\nConsider '
                   'running idiff to inspect these differences.'
                   '' % (err['rms'], err['actual'],
                         err['expected'], err['diff']))
>           assert False, msg
E           AssertionError: Images were different (RMS: 6.2591751054).
E          
/builddir/build/BUILD/Cartopy-0.16.0/cartopy_test_output/test_ticks/result-xyticks.png
/builddir/build/BUILDROOT/python-cartopy-0.16.0-1.fc29.x86_64/usr/lib64/python2.7/site-packages/cartopy/tests/mpl/baseline_images/mpl/test_ticks/xyticks.png
/builddir/build/BUILD/Cartopy-0.16.0/cartopy_test_output/test_ticks/result-xyticks-failed-diff.png
E           Consider running idiff to inspect these differences.
../../BUILDROOT/python-cartopy-0.16.0-1.fc29.x86_64/usr/lib64/python2.7/site-packages/cartopy/tests/mpl/__init__.py:199:
AssertionError
_________________________ test_set_xticks_cylindrical
__________________________
args = (), kwargs = {}, orig_backend = 'agg'
style_context = <function context at 0x7fa735764cf8>, r = None
fig_managers = [<matplotlib.backend_bases.FigureManagerBase object at
0x7fa72304a6d0>]
manager = <matplotlib.backend_bases.FigureManagerBase object at 0x7fa72304a6d0>
figures = [<matplotlib.figure.Figure object at 0x7fa72309cb50>]
figure = <matplotlib.figure.Figure object at 0x7fa72309cb50>
    def wrapped(*args, **kwargs):
        orig_backend = plt.get_backend()
        plt.switch_backend('agg')
        mpl_setup()

        if pyplot_helpers.Gcf.figs:
            warnings.warn('Figures existed before running the %s %s test.'
                          ' All figures should be closed after they run. '
                          'They will be closed automatically now.' %
                          (mod_name, test_name))
            pyplot_helpers.Gcf.destroy_all()

        if MPL_VERSION >= '2':
            style_context = mpl.style.context
        else:
            @contextlib.contextmanager
            def style_context(style, after_reset=False):
                yield

        with style_context('classic'):
            r = test_func(*args, **kwargs)

            fig_managers = pyplot_helpers.Gcf._activeQue
            figures = [manager.canvas.figure for manager in fig_managers]

            try:
>               self.run_figure_comparisons(figures, test_name=mod_name)
../../BUILDROOT/python-cartopy-0.16.0-1.fc29.x86_64/usr/lib64/python2.7/site-packages/cartopy/tests/mpl/__init__.py:237: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../BUILDROOT/python-cartopy-0.16.0-1.fc29.x86_64/usr/lib64/python2.7/site-packages/cartopy/tests/mpl/__init__.py:165:
in run_figure_comparisons
    self.do_compare(result_path, expected_path, self.tolerance)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
self = <cartopy.tests.mpl.ImageTesting object at 0x7fa72e29f210>
result_fname =
'/builddir/build/BUILD/Cartopy-0.16.0/cartopy_test_output/test_ticks/result-xticks_cylindrical.png'
expected_fname =
'/builddir/build/BUILDROOT/python-cartopy-0.16.0-1.fc29.x86_64/usr/lib64/python2.7/site-packages/cartopy/tests/mpl/baseline_images/mpl/test_ticks/xticks_cylindrical.png'
tol = 0.5
    def do_compare(self, result_fname, expected_fname, tol):
        """
            Runs the comparison of the result file with the expected file.

            If an RMS difference greater than ``tol`` is found an assertion
            error is raised with an appropriate message with the paths to
            the files concerned.

            """
        if not os.path.exists(expected_fname):
            warnings.warn('Created image in %s' % expected_fname)
            shutil.copy2(result_fname, expected_fname)

        err = mcompare.compare_images(expected_fname, result_fname,
                                      tol=tol, in_decorator=True)

        if err:
            msg = ('Images were different (RMS: %s).\n%s %s %s\nConsider '
                   'running idiff to inspect these differences.'
                   '' % (err['rms'], err['actual'],
                         err['expected'], err['diff']))
>           assert False, msg
E           AssertionError: Images were different (RMS: 6.66042337868).
E          
/builddir/build/BUILD/Cartopy-0.16.0/cartopy_test_output/test_ticks/result-xticks_cylindrical.png
/builddir/build/BUILDROOT/python-cartopy-0.16.0-1.fc29.x86_64/usr/lib64/python2.7/site-packages/cartopy/tests/mpl/baseline_images/mpl/test_ticks/xticks_cylindrical.png
/builddir/build/BUILD/Cartopy-0.16.0/cartopy_test_output/test_ticks/result-xticks_cylindrical-failed-diff.png
E           Consider running idiff to inspect these differences.
../../BUILDROOT/python-cartopy-0.16.0-1.fc29.x86_64/usr/lib64/python2.7/site-packages/cartopy/tests/mpl/__init__.py:199:
AssertionError
_________________________ test_set_yticks_no_transform
_________________________
args = (), kwargs = {}, orig_backend = 'agg'
style_context = <function context at 0x7fa735764cf8>, r = None
fig_managers = [<matplotlib.backend_bases.FigureManagerBase object at
0x7fa72376b190>]
manager = <matplotlib.backend_bases.FigureManagerBase object at 0x7fa72376b190>
figures = [<matplotlib.figure.Figure object at 0x7fa723448f10>]
figure = <matplotlib.figure.Figure object at 0x7fa723448f10>
    def wrapped(*args, **kwargs):
        orig_backend = plt.get_backend()
        plt.switch_backend('agg')
        mpl_setup()

        if pyplot_helpers.Gcf.figs:
            warnings.warn('Figures existed before running the %s %s test.'
                          ' All figures should be closed after they run. '
                          'They will be closed automatically now.' %
                          (mod_name, test_name))
            pyplot_helpers.Gcf.destroy_all()

        if MPL_VERSION >= '2':
            style_context = mpl.style.context
        else:
            @contextlib.contextmanager
            def style_context(style, after_reset=False):
                yield

        with style_context('classic'):
            r = test_func(*args, **kwargs)

            fig_managers = pyplot_helpers.Gcf._activeQue
            figures = [manager.canvas.figure for manager in fig_managers]

            try:
>               self.run_figure_comparisons(figures, test_name=mod_name)
../../BUILDROOT/python-cartopy-0.16.0-1.fc29.x86_64/usr/lib64/python2.7/site-packages/cartopy/tests/mpl/__init__.py:237: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../BUILDROOT/python-cartopy-0.16.0-1.fc29.x86_64/usr/lib64/python2.7/site-packages/cartopy/tests/mpl/__init__.py:165:
in run_figure_comparisons
    self.do_compare(result_path, expected_path, self.tolerance)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
self = <cartopy.tests.mpl.ImageTesting object at 0x7fa72e479dd0>
result_fname =
'/builddir/build/BUILD/Cartopy-0.16.0/cartopy_test_output/test_ticks/result-yticks_no_transform.png'
expected_fname =
'/builddir/build/BUILDROOT/python-cartopy-0.16.0-1.fc29.x86_64/usr/lib64/python2.7/site-packages/cartopy/tests/mpl/baseline_images/mpl/test_ticks/yticks_no_transform.png'
tol = 0.5
    def do_compare(self, result_fname, expected_fname, tol):
        """
            Runs the comparison of the result file with the expected file.

            If an RMS difference greater than ``tol`` is found an assertion
            error is raised with an appropriate message with the paths to
            the files concerned.

            """
        if not os.path.exists(expected_fname):
            warnings.warn('Created image in %s' % expected_fname)
            shutil.copy2(result_fname, expected_fname)

        err = mcompare.compare_images(expected_fname, result_fname,
                                      tol=tol, in_decorator=True)

        if err:
            msg = ('Images were different (RMS: %s).\n%s %s %s\nConsider '
                   'running idiff to inspect these differences.'
                   '' % (err['rms'], err['actual'],
                         err['expected'], err['diff']))
>           assert False, msg
E           AssertionError: Images were different (RMS: 3.65015638934).
E          
/builddir/build/BUILD/Cartopy-0.16.0/cartopy_test_output/test_ticks/result-yticks_no_transform.png
/builddir/build/BUILDROOT/python-cartopy-0.16.0-1.fc29.x86_64/usr/lib64/python2.7/site-packages/cartopy/tests/mpl/baseline_images/mpl/test_ticks/yticks_no_transform.png
/builddir/build/BUILD/Cartopy-0.16.0/cartopy_test_output/test_ticks/result-yticks_no_transform-failed-diff.png
E           Consider running idiff to inspect these differences.
../../BUILDROOT/python-cartopy-0.16.0-1.fc29.x86_64/usr/lib64/python2.7/site-packages/cartopy/tests/mpl/__init__.py:199:
AssertionError
_________________________ test_set_xticks_no_transform
_________________________
args = (), kwargs = {}, orig_backend = 'agg'
style_context = <function context at 0x7fa735764cf8>, r = None
fig_managers = [<matplotlib.backend_bases.FigureManagerBase object at
0x7fa72308fbd0>]
manager = <matplotlib.backend_bases.FigureManagerBase object at 0x7fa72308fbd0>
figures = [<matplotlib.figure.Figure object at 0x7fa723091e50>]
figure = <matplotlib.figure.Figure object at 0x7fa723091e50>
    def wrapped(*args, **kwargs):
        orig_backend = plt.get_backend()
        plt.switch_backend('agg')
        mpl_setup()

        if pyplot_helpers.Gcf.figs:
            warnings.warn('Figures existed before running the %s %s test.'
                          ' All figures should be closed after they run. '
                          'They will be closed automatically now.' %
                          (mod_name, test_name))
            pyplot_helpers.Gcf.destroy_all()

        if MPL_VERSION >= '2':
            style_context = mpl.style.context
        else:
            @contextlib.contextmanager
            def style_context(style, after_reset=False):
                yield

        with style_context('classic'):
            r = test_func(*args, **kwargs)

            fig_managers = pyplot_helpers.Gcf._activeQue
            figures = [manager.canvas.figure for manager in fig_managers]

            try:
>               self.run_figure_comparisons(figures, test_name=mod_name)
../../BUILDROOT/python-cartopy-0.16.0-1.fc29.x86_64/usr/lib64/python2.7/site-packages/cartopy/tests/mpl/__init__.py:237: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../../BUILDROOT/python-cartopy-0.16.0-1.fc29.x86_64/usr/lib64/python2.7/site-packages/cartopy/tests/mpl/__init__.py:165:
in run_figure_comparisons
    self.do_compare(result_path, expected_path, self.tolerance)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
self = <cartopy.tests.mpl.ImageTesting object at 0x7fa72e29f150>
result_fname =
'/builddir/build/BUILD/Cartopy-0.16.0/cartopy_test_output/test_ticks/result-xticks_no_transform.png'
expected_fname =
'/builddir/build/BUILDROOT/python-cartopy-0.16.0-1.fc29.x86_64/usr/lib64/python2.7/site-packages/cartopy/tests/mpl/baseline_images/mpl/test_ticks/xticks_no_transform.png'
tol = 0.5
    def do_compare(self, result_fname, expected_fname, tol):
        """
            Runs the comparison of the result file with the expected file.

            If an RMS difference greater than ``tol`` is found an assertion
            error is raised with an appropriate message with the paths to
            the files concerned.

            """
        if not os.path.exists(expected_fname):
            warnings.warn('Created image in %s' % expected_fname)
            shutil.copy2(result_fname, expected_fname)

        err = mcompare.compare_images(expected_fname, result_fname,
                                      tol=tol, in_decorator=True)

        if err:
            msg = ('Images were different (RMS: %s).\n%s %s %s\nConsider '
                   'running idiff to inspect these differences.'
                   '' % (err['rms'], err['actual'],
                         err['expected'], err['diff']))
>           assert False, msg
E           AssertionError: Images were different (RMS: 6.66042337868).
E          
/builddir/build/BUILD/Cartopy-0.16.0/cartopy_test_output/test_ticks/result-xticks_no_transform.png
/builddir/build/BUILDROOT/python-cartopy-0.16.0-1.fc29.x86_64/usr/lib64/python2.7/site-packages/cartopy/tests/mpl/baseline_images/mpl/test_ticks/xticks_no_transform.png
/builddir/build/BUILD/Cartopy-0.16.0/cartopy_test_output/test_ticks/result-xticks_no_transform-failed-diff.png
E           Consider running idiff to inspect these differences.
../../BUILDROOT/python-cartopy-0.16.0-1.fc29.x86_64/usr/lib64/python2.7/site-packages/cartopy/tests/mpl/__init__.py:199:
AssertionError
=============================== warnings summary
===============================
::test_multiple_projections
 
/builddir/build/BUILDROOT/python-cartopy-0.16.0-1.fc29.x86_64/usr/lib64/python2.7/site-packages/cartopy/mpl/feature_artist.py:136:
UserWarning: Unable to determine extent. Defaulting to global.
    warnings.warn('Unable to determine extent. Defaulting to global.')
-- Docs: http://doc.pytest.org/en/latest/warnings.html
============================= 54 tests deselected
==============================
 6 failed, 271 passed, 1 skipped, 54 deselected, 1 xfailed, 1 warnings in 40.06
seconds

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite Conditions]     [KDE Users]

  Powered by Linux