You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by fo...@apache.org on 2017/11/29 14:32:00 UTC
incubator-airflow git commit: [AIRFLOW-1785] Enable Python 3 tests
Repository: incubator-airflow
Updated Branches:
refs/heads/master 4135c82bf -> 8e7b0abed
[AIRFLOW-1785] Enable Python 3 tests
Enable tests under Python 3 to make sure that
tests run under Python
3.
Closes #2755 from Fokko/AIRFLOW-1785-Enable-
Python3-tests
Project: http://git-wip-us.apache.org/repos/asf/incubator-airflow/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-airflow/commit/8e7b0abe
Tree: http://git-wip-us.apache.org/repos/asf/incubator-airflow/tree/8e7b0abe
Diff: http://git-wip-us.apache.org/repos/asf/incubator-airflow/diff/8e7b0abe
Branch: refs/heads/master
Commit: 8e7b0abed297ae53821feb35bac55390d7a8e2bf
Parents: 4135c82
Author: Fokko Driesprong <fo...@godatadriven.com>
Authored: Wed Nov 29 15:31:53 2017 +0100
Committer: Fokko Driesprong <fo...@godatadriven.com>
Committed: Wed Nov 29 15:31:53 2017 +0100
----------------------------------------------------------------------
tests/contrib/operators/test_spark_submit_operator.py | 5 -----
tests/contrib/sensors/test_hdfs_sensors.py | 4 ----
tests/operators/sensors.py | 2 --
3 files changed, 11 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/8e7b0abe/tests/contrib/operators/test_spark_submit_operator.py
----------------------------------------------------------------------
diff --git a/tests/contrib/operators/test_spark_submit_operator.py b/tests/contrib/operators/test_spark_submit_operator.py
index 4e72eea..05ddc32 100644
--- a/tests/contrib/operators/test_spark_submit_operator.py
+++ b/tests/contrib/operators/test_spark_submit_operator.py
@@ -61,11 +61,6 @@ class TestSparkSubmitOperator(unittest.TestCase):
}
def setUp(self):
-
- if sys.version_info[0] == 3:
- raise unittest.SkipTest('TestSparkSubmitOperator won\'t work with '
- 'python3. No need to test anything here')
-
configuration.load_test_config()
args = {
'owner': 'airflow',
http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/8e7b0abe/tests/contrib/sensors/test_hdfs_sensors.py
----------------------------------------------------------------------
diff --git a/tests/contrib/sensors/test_hdfs_sensors.py b/tests/contrib/sensors/test_hdfs_sensors.py
index 290089b..a76a6c4 100644
--- a/tests/contrib/sensors/test_hdfs_sensors.py
+++ b/tests/contrib/sensors/test_hdfs_sensors.py
@@ -22,8 +22,6 @@ from airflow.exceptions import AirflowSensorTimeout
class HdfsSensorFolderTests(unittest.TestCase):
def setUp(self):
- if sys.version_info[0] == 3:
- raise unittest.SkipTest('HdfsSensor won\'t work with python3. No need to test anything here')
from tests.core import FakeHDFSHook
self.hook = FakeHDFSHook
self.log = logging.getLogger()
@@ -120,8 +118,6 @@ class HdfsSensorFolderTests(unittest.TestCase):
class HdfsSensorRegexTests(unittest.TestCase):
def setUp(self):
- if sys.version_info[0] == 3:
- raise unittest.SkipTest('HdfsSensor won\'t work with python3. No need to test anything here')
from tests.core import FakeHDFSHook
self.hook = FakeHDFSHook
self.log = logging.getLogger()
http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/8e7b0abe/tests/operators/sensors.py
----------------------------------------------------------------------
diff --git a/tests/operators/sensors.py b/tests/operators/sensors.py
index d09dabe..fccc9c3 100644
--- a/tests/operators/sensors.py
+++ b/tests/operators/sensors.py
@@ -200,8 +200,6 @@ class HttpSensorTests(unittest.TestCase):
class HdfsSensorTests(unittest.TestCase):
def setUp(self):
- if sys.version_info[0] == 3:
- raise unittest.SkipTest('HdfsSensor won\'t work with python3. No need to test anything here')
from tests.core import FakeHDFSHook
self.hook = FakeHDFSHook