On 2025/11/02 16:48, Sebastian Reitenbach wrote:
> Hi,
> 
> as pointed out by Stuart, Python will drop telnetlib from core Python in 
> version 3.13.
> Here's a port of the library to a standalone package. Tests don't work, they 
> assume the library
> is installed in the standard location, but that's not the case? Don't really 
> know how to make
> them work.
> 
> tarball attached, any comments, or suggestions are welcome.
> 
> cheers,
> Sebastian


your commented-out PKGNAME line should be uncommented.
otherwise ok.

tests nearly all work for me, just one error and a warning, which seems
ok:

===>  Regression tests for py3-standard-telnetlib-3.13.0
============================= test session starts ==============================
platform openbsd7 -- Python 3.12.12, pytest-8.4.2, pluggy-1.6.0
rootdir: /usr/obj/ports/py-standard-telnetlib-3.13.0/standard_telnetlib-3.13.0
configfile: pyproject.toml
collected 21 items

tests/test_telnetlib.py .......E.............                            [100%]

==================================== ERRORS ====================================
________________________ ERROR at setup of test_socket _________________________
file 
/usr/obj/ports/py-standard-telnetlib-3.13.0/standard_telnetlib-3.13.0/tests/test_telnetlib.py,
 line 154
  @contextlib.contextmanager
  def test_socket(reads):
E       fixture 'reads' not found
>       available fixtures: cache, capfd, capfdbinary, caplog, capsys, 
> capsysbinary, capteesys, doctest_namespace, monkeypatch, pytestconfig, 
> record_property, record_testsuite_property, record_xml_attribute, recwarn, 
> tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
>       use 'pytest --fixtures [testpath]' for help on them.

Reply via email to