[yt-svn] commit/yt: xarthisius: [tests] sort dictionary to ensure that test name is reproducible with py3

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Thu Aug 27 07:37:20 PDT 2015


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/048450de2ed0/
Changeset:   048450de2ed0
Branch:      yt
User:        xarthisius
Date:        2015-08-26 21:00:13+00:00
Summary:     [tests] sort dictionary to ensure that test name is reproducible with py3
Affected #:  1 file

diff -r 580e8d4ccc0ecd2f0d8198307cf0d074b0b735cb -r 048450de2ed04be67e2f39ad89dea98a64169807 yt/visualization/tests/test_plotwindow.py
--- a/yt/visualization/tests/test_plotwindow.py
+++ b/yt/visualization/tests/test_plotwindow.py
@@ -67,6 +67,9 @@
 M7 = "DD0010/moving7_0010"
 WT = "WindTunnel/windtunnel_4lev_hdf5_plt_cnt_0030"
 
+FPROPS = {'family': 'sans-serif', 'style': 'italic',
+          'weight': 'bold', 'size': 24}
+
 ATTR_ARGS = {"pan": [(((0.1, 0.1), ), {})],
              "pan_rel": [(((0.1, 0.1), ), {})],
              "set_axes_unit": [(("kpc", ), {}),
@@ -78,9 +81,7 @@
              "set_center": [(((0.4, 0.3), ), {})],
              "set_cmap": [(('density', 'RdBu'), {}),
                           (('density', 'kamae'), {})],
-             "set_font": [((OrderedDict({'family': 'sans-serif',
-                                         'style': 'italic',
-                                         'weight': 'bold', 'size': 24}), ),
+             "set_font": [((OrderedDict(sorted(FPROPS.items(), key=lambda t: t[0])), ),
                            {})],
              "set_log": [(('density', False), {})],
              "set_window_size": [((7.0, ), {})],

Repository URL: https://bitbucket.org/yt_analysis/yt/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.


More information about the yt-svn mailing list