Skip to content

Commit

Permalink
Skip snakebite cdh tests on Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
daveFNbuck committed May 20, 2017
1 parent b4a22fb commit 5b42b44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/contrib/hdfs_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ def test_target_path_exists_rename_fails_hadoopcli(self, remove):
fobj = hdfs.HdfsAtomicWritePipe(testpath)
self.assertRaises(hdfs.HDFSCliError, fobj.close)

@unittest.skipIf(six.PY3, "snakebite doesn't work on Python 3 yet.")
@helpers.with_config({"hdfs": {"client": "snakebite"}})
@mock.patch('luigi.contrib.hdfs.format.rename')
@mock.patch('luigi.contrib.hdfs.format.remove')
Expand Down Expand Up @@ -275,14 +276,14 @@ def test_rename_into_existing_subdir_after_failed_remove(self, remove):
fobj = hdfs.HdfsAtomicWriteDirPipe(self.path)
self.assertRaises(HdfsAtomicWriteError, fobj.close)

@helpers.with_config({"hdfs": {"client": "hadoopcli"}})
@mock.patch('luigi.contrib.hdfs.format.remove')
def test_target_path_exists_rename_fails_hadoopcli(self, remove):
with hdfs.HdfsAtomicWritePipe(self.path) as fobj:
fobj.write(b'test1')
fobj = hdfs.HdfsAtomicWriteDirPipe(self.path)
self.assertRaises(hdfs.HDFSCliError, fobj.close)

@unittest.skipIf(six.PY3, "snakebite doesn't work on Python 3 yet.")
@helpers.with_config({"hdfs": {"client": "snakebite"}})
@mock.patch('luigi.contrib.hdfs.format.rename')
@mock.patch('luigi.contrib.hdfs.format.remove')
Expand Down

0 comments on commit 5b42b44

Please sign in to comment.