Fix mline tests
# -*- coding: utf-8 -*-
+from asyncio import Future
import unittest
import os
import numpy as npy
+import pytest
from skrf.media import MLine
from skrf.frequency import Frequency
@@ -139,6 +141,7 @@ class MLineTestCase(unittest.TestCase):
model = ref['model'], disp = ref['disp'],
diel = 'frequencyinvariant',
compatibility_mode = 'qucs')
+ with pytest.warns(FutureWarning, match="`embed` will be deprecated"):
line = mline.line(d=self.l, unit='m', embed = True, z0=mline.Z0)
line.name = 'skrf,qucs'
@@ -210,6 +213,7 @@ class MLineTestCase(unittest.TestCase):
tand = self.tand, rough = self.d,
model = 'hammerstadjensen', disp = ref['disp'],
diel = ref['diel'])
+ with pytest.warns(FutureWarning, match="`embed` will be deprecated"):
line = mline.line(d=self.l, unit='m', embed = True, z0=mline.Z0)
line.name = 'skrf,ads'
