コード例 #1
0
ファイル: test_local.py プロジェクト: eklitzke/mrjob
 def test_environment_variables_018(self):
     runner = LocalMRJobRunner(hadoop_version='0.18', conf_paths=[])
     # clean up after we're done. On windows, job names are only to
     # the millisecond, so these two tests end up trying to create
     # the same temp dir
     with runner as runner:
         runner._setup_working_dir()
         self.assertIn('mapred_cache_localArchives',
                       runner._subprocess_env('mapper', 0, 0).keys())
コード例 #2
0
ファイル: test_local.py プロジェクト: AnthonyNystrom/mrjob
 def test_environment_variables_018(self):
     runner = LocalMRJobRunner(hadoop_version='0.18', conf_paths=[])
     # clean up after we're done. On windows, job names are only to
     # the millisecond, so these two tests end up trying to create
     # the same temp dir
     with runner as runner:
         runner._setup_working_dir()
         self.assertIn('mapred_cache_localArchives',
                       runner._subprocess_env('M', 0, 0).keys())
コード例 #3
0
ファイル: test_local.py プロジェクト: AnthonyNystrom/mrjob
class TestIronPythonEnvironment(unittest.TestCase):
    def setUp(self):
        self.runner = LocalMRJobRunner(conf_paths=[])
        self.runner._setup_working_dir()

    def test_env_ironpython(self):
        with patch.object(local, 'is_ironpython', True):
            environment = self.runner._subprocess_env('M', 0, 0)
            self.assertIn('IRONPYTHONPATH', environment)

    def test_env_no_ironpython(self):
        with patch.object(local, 'is_ironpython', False):
            environment = self.runner._subprocess_env('M', 0, 0)
            self.assertNotIn('IRONPYTHONPATH', environment)
コード例 #4
0
ファイル: test_local.py プロジェクト: DrMavenRebe/mrjob
class TestIronPythonEnvironment(unittest.TestCase):

    def setUp(self):
        self.runner = LocalMRJobRunner(conf_paths=[])
        self.runner._setup_working_dir()

    def test_env_ironpython(self):
        with patch.object(local, 'is_ironpython', True):
            environment = self.runner._subprocess_env('M', 0, 0)
            self.assertIn('IRONPYTHONPATH', environment)

    def test_env_no_ironpython(self):
        with patch.object(local, 'is_ironpython', False):
            environment = self.runner._subprocess_env('M', 0, 0)
            self.assertNotIn('IRONPYTHONPATH', environment)
コード例 #5
0
ファイル: test_local.py プロジェクト: eklitzke/mrjob
 def test_environment_variables_021(self):
     runner = LocalMRJobRunner(hadoop_version='0.21', conf_paths=[])
     with runner as runner:
         runner._setup_working_dir()
         self.assertIn('mapreduce_job_cache_local_archives',
                       runner._subprocess_env('mapper', 0, 0).keys())
コード例 #6
0
ファイル: test_local.py プロジェクト: AnthonyNystrom/mrjob
 def test_environment_variables_021(self):
     runner = LocalMRJobRunner(hadoop_version='0.21', conf_paths=[])
     with runner as runner:
         runner._setup_working_dir()
         self.assertIn('mapreduce_job_cache_local_archives',
                       runner._subprocess_env('M', 0, 0).keys())