[yt-svn] commit/yt: ngoldbaum: [testing] Avoid test failure if test_data_dir isn't configured
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Mon Sep 21 11:11:19 PDT 2015
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/dd30c95c0028/
Changeset: dd30c95c0028
Branch: yt
User: ngoldbaum
Date: 2015-09-15 20:49:59+00:00
Summary: [testing] Avoid test failure if test_data_dir isn't configured
Affected #: 1 file
diff -r f818f29712491ce9f597decaea69297a06603393 -r dd30c95c00283bc925b9fe2113a4a5eae1c264a9 yt/frontends/stream/tests/test_outputs.py
--- a/yt/frontends/stream/tests/test_outputs.py
+++ b/yt/frontends/stream/tests/test_outputs.py
@@ -19,7 +19,7 @@
import unittest
from yt.testing import assert_raises
-from yt.utilities.answer_testing.framework import data_dir_load
+from yt.convenience import load
from yt.utilities.exceptions import YTOutputNotIdentified
class TestEmptyLoad(unittest.TestCase):
@@ -40,6 +40,6 @@
shutil.rmtree(self.tmpdir)
def test_load_empty_file(self):
- assert_raises(YTOutputNotIdentified, data_dir_load, "not_a_file")
- assert_raises(YTOutputNotIdentified, data_dir_load, "empty_file")
- assert_raises(YTOutputNotIdentified, data_dir_load, "empty_directory")
+ assert_raises(YTOutputNotIdentified, load, "not_a_file")
+ assert_raises(YTOutputNotIdentified, load, "empty_file")
+ assert_raises(YTOutputNotIdentified, load, "empty_directory")
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