[tahoe-lafs-trac-stream] [Tahoe-LAFS] #2998: Port foolscap to Python3

Tahoe-LAFS trac at tahoe-lafs.org
Mon Jul 22 18:48:53 UTC 2019


#2998: Port foolscap to Python3
------------------------------+-----------------------
     Reporter:  pythonhacker  |      Owner:
         Type:  task          |     Status:  new
     Priority:  normal        |  Milestone:  undecided
    Component:  code          |    Version:  1.12.1
   Resolution:                |   Keywords:  Python3
Launchpad Bug:                |
------------------------------+-----------------------

Comment (by pythonhacker):

 Made the tests retroactively pass on Python2 also ... after the Python3
 changes. Ain't it cool ?

 {{{
 (tahoe) anand at anand-HP-Pavilion-
 Laptop-15-cc1xx:~/projects/anvetsu/tahoe/foolscap3/src/foolscap/test
 {2019-07-2
 3 00:17:43}
 $ pytest test_banana.py
 ========================================== test session starts
 ===========================================
 platform linux2 -- Python 2.7.15rc1, pytest-4.3.1, py-1.8.0, pluggy-0.9.0
 hypothesis profile 'default' ->
 database=DirectoryBasedExampleDatabase('/home/anand/projects/anvetsu/tahoe/foolscap3/src/foolscap/test/.hypothesis/examples')
 rootdir: /home/anand/projects/anvetsu/tahoe/foolscap3, inifile:
 plugins: twisted-1.10, hypothesis-4.27.0
 collected 115 items

 test_banana.py
 ...................................................................................
 [ 72%]
 .....s..ss.......s..............
 [100%]

 ============================================ warnings summary
 ============================================
 test_banana.py:301
 /home/anand/projects/anvetsu/tahoe/foolscap3/src/foolscap/test/test_banana.py:301:
 PytestWarning: cannot collect test class 'TestTransport' because it has a
 __init__ constructor
     class TestTransport(io.StringIO):

 test_banana.py:308
 /home/anand/projects/anvetsu/tahoe/foolscap3/src/foolscap/test/test_banana.py:308:
 PytestWarning: cannot collect test class 'TestBytesTransport' because it
 has a __init__ constructor
     class TestBytesTransport(io.BytesIO):

 -- Docs: https://docs.pytest.org/en/latest/warnings.html
 =========================== 111 passed, 4 skipped, 2 warnings in 0.32
 seconds ============================
 }}}

--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/2998#comment:8>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list