[yt-svn] commit/yt: MatthewTurk: Fixing periodic table tests.
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Sun Mar 23 14:06:47 PDT 2014
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/233a27edec6f/
Changeset: 233a27edec6f
Branch: yt-3.0
User: MatthewTurk
Date: 2014-03-23 21:32:15
Summary: Fixing periodic table tests.
Affected #: 1 file
diff -r ecda2dbe9b1e08c99bb4e4ce27bce50f98b620b4 -r 233a27edec6ff7a1855b36aa096b05361ebd7759 yt/utilities/tests/test_periodic_table.py
--- a/yt/utilities/tests/test_periodic_table.py
+++ b/yt/utilities/tests/test_periodic_table.py
@@ -6,6 +6,9 @@
e0 = periodic_table[num]
e1 = periodic_table[name]
e2 = periodic_table[sym]
+ # If num == -1, then we are in one of the things like Deuterium or El
+ # that are not elements by themselves.
+ if num == -1: e0 = e1
yield assert_equal, id(e0), id(e1)
yield assert_equal, id(e0), id(e2)
yield assert_equal, e0.num, num
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