3.2 release! (#2139)

* 3.2

* ip address test catch

* treat 3.x interfaces as interfaces

* formatting

* mode
This commit is contained in:
Abubakar Abid 2022-08-31 13:49:06 -07:00 committed by GitHub
parent b2a181d4b0
commit 4e1ee4099f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 2 deletions

View File

@ -495,6 +495,11 @@ class Blocks(BlockContext):
blocks.input_components = [blocks.blocks[i] for i in dependency["inputs"]]
blocks.output_components = [blocks.blocks[o] for o in dependency["outputs"]]
if config.get("mode", "blocks") == "interface":
blocks.__name__ = "Interface"
blocks.mode = "interface"
blocks.api_mode = True
return blocks
def __call__(self, *params, fn_index=0):

View File

@ -1 +1 @@
3.1.8b
3.2

View File

@ -102,9 +102,10 @@ class TestUtils(unittest.TestCase):
class TestIPAddress(unittest.TestCase):
@pytest.mark.flaky
def test_get_ip(self):
ip = get_local_ip_address()
if ip == "No internet connection":
return
try: # check whether ip is valid
ipaddress.ip_address(ip)
except ValueError: