[yt-svn] commit/yt: 2 new changesets

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Wed Jan 27 09:30:58 PST 2016


2 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/c936fa53a1a0/
Changeset:   c936fa53a1a0
Branch:      yt
User:        ngoldbaum
Date:        2016-01-20 22:22:53+00:00
Summary:     Do not exit python when an assertion fails in the artio frontend

Very infrequently, this causes the unit tests to crash in
yt.frontends.tests.artio.tests.test_ARTIODatset. Rather than exiting the
interpreter when the assertion fails, simply print the error message
regarding the failed assertion and do not exit.
Affected #:  1 file

diff -r ce86a254c61e8631fbd60692bb156e8287a8308a -r c936fa53a1a00f08f3a03dfb5839e23dd4fd649a yt/frontends/artio/artio_headers/cosmology.c
--- a/yt/frontends/artio/artio_headers/cosmology.c
+++ b/yt/frontends/artio/artio_headers/cosmology.c
@@ -10,7 +10,7 @@
 
 #ifndef ASSERT
 #include <stdio.h>
-#define ASSERT(exp) { if(!(exp)) { fprintf(stderr,"Failed assertion %s, line: %d\n",#exp,__LINE__); exit(1); } }
+#define ASSERT(exp) { if(!(exp)) { fprintf(stderr,"Failed assertion %s, line: %d\n",#exp,__LINE__); } }
 #endif
 
 #ifndef HEAPALLOC


https://bitbucket.org/yt_analysis/yt/commits/f6d9b67a3e76/
Changeset:   f6d9b67a3e76
Branch:      yt
User:        atmyers
Date:        2016-01-27 17:30:52+00:00
Summary:     Merged in ngoldbaum/yt (pull request #1949)

Do not exit python when an assertion fails in the artio frontend
Affected #:  1 file

diff -r 5eb209b48f9a45ef1ff4ec25de90e019401e0de0 -r f6d9b67a3e76eda32543a159c544c919d5e5895a yt/frontends/artio/artio_headers/cosmology.c
--- a/yt/frontends/artio/artio_headers/cosmology.c
+++ b/yt/frontends/artio/artio_headers/cosmology.c
@@ -10,7 +10,7 @@
 
 #ifndef ASSERT
 #include <stdio.h>
-#define ASSERT(exp) { if(!(exp)) { fprintf(stderr,"Failed assertion %s, line: %d\n",#exp,__LINE__); exit(1); } }
+#define ASSERT(exp) { if(!(exp)) { fprintf(stderr,"Failed assertion %s, line: %d\n",#exp,__LINE__); } }
 #endif
 
 #ifndef HEAPALLOC

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