---> Testing radian
Executing: cd "/opt/local/var/macports/build/_opt_PPCRosettaPorts_math_radian/radian/work/radian-0.6.4" && py.test-3.10 -o addopts=''
============================= test session starts ==============================
platform darwin -- Python 3.10.9, pytest-7.2.0, pluggy-1.0.0
rootdir: /opt/local/var/macports/build/_opt_PPCRosettaPorts_math_radian/radian/work/radian-0.6.4, configfile: setup.cfg, testpaths: tests
collected 15 items
tests/test_aaa.py . [ 6%]
tests/test_readline.py ..... [ 40%]
tests/test_reticulate.py .FEFFE [ 66%]
tests/test_shell.py ... [ 86%]
tests/test_startup.py . [ 93%]
tests/test_version.py . [100%]
==================================== ERRORS ====================================
_____________________ ERROR at teardown of test_multiline ______________________
radian_command = ['/opt/local/Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10', '-m', 'radian']
@pytest.fixture(scope='function')
def terminal(radian_command):
with Terminal.open(radian_command) as t:
yield t
t.sendintr()
t.write("q()\n")
start_time = time.time()
while t.isalive():
if time.time() - start_time > 15:
> raise Exception("radian didn't quit cleanly")
E Exception: radian didn't quit cleanly
tests/conftest.py:32: Exception
_____________________ ERROR at teardown of test_completion _____________________
radian_command = ['/opt/local/Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10', '-m', 'radian']
@pytest.fixture(scope='function')
def terminal(radian_command):
with Terminal.open(radian_command) as t:
yield t
t.sendintr()
t.write("q()\n")
start_time = time.time()
while t.isalive():
if time.time() - start_time > 15:
> raise Exception("radian didn't quit cleanly")
E Exception: radian didn't quit cleanly
tests/conftest.py:32: Exception
=================================== FAILURES ===================================
________________________________ test_multiline ________________________________
terminal = <tests.terminal.Terminal object at 0x2434040>
def test_multiline(terminal):
terminal.current_line().assert_startswith("r$>")
terminal.write("~")
> terminal.current_line().strip().assert_equal(">>>")
tests/test_reticulate.py:30:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/terminal.py:97: in assert_equal
self._assert(operator.eq, operand, timeout)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <tests.terminal.Var object at 0x2434d48>, op = <built-in function eq>
operand = '>>>', timeout = 5
def _assert(self, op, operand, timeout=5):
t = time.time()
while time.time() - t < timeout:
value = self.getter()
if op(value, operand):
break
time.sleep(0.05)
else:
> raise Exception("value is {}".format(value))
E Exception: value is
tests/terminal.py:88: Exception
_________________________________ test_ctrl_d __________________________________
terminal = <tests.terminal.Terminal object at 0x377b568>
def test_ctrl_d(terminal):
terminal.current_line().assert_startswith("r$>")
terminal.write("~")
> terminal.current_line().strip().assert_equal(">>>")
tests/test_reticulate.py:49:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/terminal.py:97: in assert_equal
self._assert(operator.eq, operand, timeout)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <tests.terminal.Var object at 0x377b5e0>, op = <built-in function eq>
operand = '>>>', timeout = 5
def _assert(self, op, operand, timeout=5):
t = time.time()
while time.time() - t < timeout:
value = self.getter()
if op(value, operand):
break
time.sleep(0.05)
else:
> raise Exception("value is {}".format(value))
E Exception: value is
tests/terminal.py:88: Exception
_______________________________ test_completion ________________________________
terminal = <tests.terminal.Terminal object at 0x378ac58>
def test_completion(terminal):
terminal.current_line().assert_startswith("r$>")
terminal.write("~")
> terminal.current_line().strip().assert_equal(">>>")
tests/test_reticulate.py:63:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/terminal.py:97: in assert_equal
self._assert(operator.eq, operand, timeout)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <tests.terminal.Var object at 0x378acd0>, op = <built-in function eq>
operand = '>>>', timeout = 5
def _assert(self, op, operand, timeout=5):
t = time.time()
while time.time() - t < timeout:
value = self.getter()
if op(value, operand):
break
time.sleep(0.05)
else:
> raise Exception("value is {}".format(value))
E Exception: value is
tests/terminal.py:88: Exception
=========================== short test summary info ============================
FAILED tests/test_reticulate.py::test_multiline - Exception: value is
FAILED tests/test_reticulate.py::test_ctrl_d - Exception: value is
FAILED tests/test_reticulate.py::test_completion - Exception: value is
ERROR tests/test_reticulate.py::test_multiline - Exception: radian didn't qui...
ERROR tests/test_reticulate.py::test_completion - Exception: radian didn't qu...
============== 3 failed, 12 passed, 2 errors in 126.32s (0:02:06) ==============
Command failed: cd "/opt/local/var/macports/build/_opt_PPCRosettaPorts_math_radian/radian/work/radian-0.6.4" && py.test-3.10 -o addopts=''
Exit code: 1