[yt-svn] commit/yt: xarthisius: Add py3.5 answer tests

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Wed Mar 30 11:18:15 PDT 2016


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/0b0c899118f4/
Changeset:   0b0c899118f4
Branch:      yt
User:        xarthisius
Date:        2016-03-30 17:41:33+00:00
Summary:     Add py3.5 answer tests
Affected #:  3 files

diff -r b6dad5b69998cff732a5c3ea7847a4b01092ffc8 -r 0b0c899118f446392e27a4624b997e50b797d707 tests/nose_runner.py
--- a/tests/nose_runner.py
+++ b/tests/nose_runner.py
@@ -3,7 +3,7 @@
 import yaml
 import multiprocessing
 import nose
-from cStringIO import StringIO
+from yt.extern.six import StringIO
 from yt.config import ytcfg
 from yt.utilities.answer_testing.framework import AnswerTesting
 
@@ -23,7 +23,7 @@
                 print("%s: Exiting" % proc_name)
                 self.task_queue.task_done()
                 break
-            print '%s: %s' % (proc_name, next_task)
+            print('%s: %s' % (proc_name, next_task))
             result = next_task()
             self.task_queue.task_done()
             self.result_queue.put(result)
@@ -43,6 +43,8 @@
                 not os.path.isdir(os.path.join(answers_dir, self.name)):
             nose.run(argv=self.argv + ['--answer-store'],
                      addplugins=[AnswerTesting()], exit=False)
+        if os.path.isfile("{}.xml".format(self.name)):
+            os.remove("{}.xml".format(self.name))
         nose.run(argv=self.argv, addplugins=[AnswerTesting()], exit=False)
         sys.stderr = old_stderr
         return mystderr.getvalue()

diff -r b6dad5b69998cff732a5c3ea7847a4b01092ffc8 -r 0b0c899118f446392e27a4624b997e50b797d707 tests/tests_3.4.yaml
--- a/tests/tests_3.4.yaml
+++ /dev/null
@@ -1,57 +0,0 @@
-answer_tests:
-  local_artio_340:
-    - yt/frontends/artio/tests/test_outputs.py
-
-  local_athena_340:
-    - yt/frontends/athena
-
-  local_chombo_340:
-    - yt/frontends/chombo/tests/test_outputs.py
-
-  local_enzo_340:
-    - yt/frontends/enzo
-
-  local_fits_340:
-    - yt/frontends/fits/tests/test_outputs.py
-
-  local_flash_340:
-    - yt/frontends/flash/tests/test_outputs.py
-
-  local_gadget_340:
-    - yt/frontends/gadget/tests/test_outputs.py
-
-  local_halos_340:
-    - yt/frontends/owls_subfind/tests/test_outputs.py
-
-  local_owls_340:
-    - yt/frontends/owls/tests/test_outputs.py
-
-  local_pw_340:
-    - yt/visualization/tests/test_plotwindow.py:test_attributes
-    - yt/visualization/tests/test_plotwindow.py:test_attributes_wt
-
-  local_tipsy_340:
-    - yt/frontends/tipsy/tests/test_outputs.py
-
-  local_varia_340:
-    - yt/analysis_modules/radmc3d_export
-    - yt/frontends/moab/tests/test_c5.py
-    - yt/analysis_modules/photon_simulator/tests/test_spectra.py
-    - yt/analysis_modules/photon_simulator/tests/test_sloshing.py
-    - yt/visualization/volume_rendering/tests/test_vr_orientation.py
-
-  local_orion_340:
-    - yt/frontends/boxlib/tests/test_orion.py
-
-  local_ramses_340:
-    - yt/frontends/ramses/tests/test_outputs.py
-
-  local_ytdata_340:
-    - yt/frontends/ytdata
-
-other_tests:
-  unittests:
-    - '-v'
-  cookbook:
-    - 'doc/source/cookbook/tests/test_cookbook.py'
-    - '-P'

diff -r b6dad5b69998cff732a5c3ea7847a4b01092ffc8 -r 0b0c899118f446392e27a4624b997e50b797d707 tests/tests_3.5.yaml
--- /dev/null
+++ b/tests/tests_3.5.yaml
@@ -0,0 +1,69 @@
+answer_tests:
+  local_artio_350:
+    - yt/frontends/artio/tests/test_outputs.py
+
+  local_athena_350:
+    - yt/frontends/athena
+
+  local_chombo_350:
+    - yt/frontends/chombo/tests/test_outputs.py
+
+  local_enzo_350:
+    - yt/frontends/enzo
+
+  local_fits_350:
+    - yt/frontends/fits/tests/test_outputs.py
+
+  local_flash_350:
+    - yt/frontends/flash/tests/test_outputs.py
+
+  local_gadget_350:
+    - yt/frontends/gadget/tests/test_outputs.py
+
+  local_gdf_350:
+    - yt/frontends/gdf/tests/test_outputs.py
+
+  local_halos_350:
+    - yt/frontends/owls_subfind/tests/test_outputs.py
+  
+  local_owls_350:
+    - yt/frontends/owls/tests/test_outputs.py
+  
+  local_pw_350:
+    - yt/visualization/tests/test_plotwindow.py:test_attributes
+    - yt/visualization/tests/test_plotwindow.py:test_attributes_wt
+    - yt/visualization/tests/test_profile_plots.py:test_phase_plot_attributes
+    - yt/visualization/tests/test_particle_plot.py:test_particle_projection_answers
+    - yt/visualization/tests/test_particle_plot.py:test_particle_projection_filter
+    - yt/visualization/tests/test_particle_plot.py:test_particle_phase_answers
+  
+  local_tipsy_350:
+    - yt/frontends/tipsy/tests/test_outputs.py
+  
+  local_varia_350:
+    - yt/analysis_modules/radmc3d_export
+    - yt/frontends/moab/tests/test_c5.py
+    - yt/analysis_modules/photon_simulator/tests/test_spectra.py
+    - yt/analysis_modules/photon_simulator/tests/test_sloshing.py
+    - yt/visualization/volume_rendering/tests/test_vr_orientation.py
+    - yt/visualization/volume_rendering/tests/test_mesh_render.py
+
+  local_orion_350:
+    - yt/frontends/boxlib/tests/test_orion.py
+  
+  local_ramses_350:
+    - yt/frontends/ramses/tests/test_outputs.py
+  
+  local_ytdata_350:
+    - yt/frontends/ytdata
+
+  local_absorption_spectrum_350:
+    - yt/analysis_modules/absorption_spectrum/tests/test_absorption_spectrum.py:test_absorption_spectrum_non_cosmo
+    - yt/analysis_modules/absorption_spectrum/tests/test_absorption_spectrum.py:test_absorption_spectrum_cosmo
+
+other_tests:
+  unittests:
+     - '-v'
+  cookbook:
+     - '-v'
+     - 'doc/source/cookbook/tests/test_cookbook.py'

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-svn-spacepope.org/attachments/20160330/66ac7d48/attachment.htm>


More information about the yt-svn mailing list