mirror of
https://github.com/home-assistant/core.git
synced 2025-12-25 05:26:47 +00:00
Add python 3.7 to travis and tox (#14523)
* Add python 3.7 to travis and tox * Use pyyaml from github * Don't version constraints * Fix version tag * Change to new pyyaml release * Python 3.7 requires xenial * Fix namespace detection * Use correct RegEx type * Update pexpect to 4.6 * Use correct validation for dictionaries * Disable Py37 incompatible packages * Upgrade all pexpect to 4.6 * Add explicit None as default param
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
"""The tests for the MQTT component embedded server."""
|
||||
from unittest.mock import Mock, MagicMock, patch
|
||||
import sys
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.setup import setup_component
|
||||
import homeassistant.components.mqtt as mqtt
|
||||
@@ -7,6 +10,9 @@ import homeassistant.components.mqtt as mqtt
|
||||
from tests.common import get_test_home_assistant, mock_coro
|
||||
|
||||
|
||||
# Until https://github.com/beerfactory/hbmqtt/pull/139 is released
|
||||
@pytest.mark.skipif(sys.version_info[:2] >= (3, 7),
|
||||
reason='Package incompatible with Python 3.7')
|
||||
class TestMQTT:
|
||||
"""Test the MQTT component."""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user