Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] python3 from cfv-project:python3 #5

Open
wants to merge 196 commits into
base: python3
Choose a base branch
from

Conversation

pull[bot]
Copy link

@pull pull bot commented Oct 25, 2022

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.1)

Can you help keep this open source service alive? 💖 Please sponsor : )

Timothy D. Webster and others added 30 commits May 24, 2020 23:51
Open README file with correct encoding
Fixes the following traceback:

```
Traceback (most recent call last):
  File "test/test.py", line 1890, in <module>
    failed += all_tests()
  File "test/test.py", line 1636, in all_tests
    ren_test(fmt)
  File "test/test.py", line 932, in ren_test
    flscmp(b'hello', None, fls)
  File "test/test.py", line 911, in flscmp
    test_log_results('cmp %s for %s' % (fn, t), r, o, r, None)
  File "test/test.py", line 271, in test_log_results
    log(o)
  File "test/test.py", line 230, in log
    logr(text + '\n')
TypeError: can't concat str to bytes
```
…'`. Can guess that this is the case from the command line parameters:

    >>> failed test: /home/steven/programming/python/dev/packages/cfv/test/cfv -ZNVRMUI --unquote=no --fixpaths="" --strippaths=0 --showpaths=auto-relative --progress=no --announceurl=url --noprivate_torrent -t bsdmd5 -zz -T -f -  {'stdin': '/tmp/tmpm65hbxli/test.C.bsdmd5.gz'}

This indeed fixes another test (fixes 16 more in total). Not sure why there was a "lovely hack" used previously, but got rid of this hack now.
Fixes the following traceback:

Traceback (most recent call last):
  File "test/test.py", line 1888, in <module>
    failed += all_tests()
  File "test/test.py", line 1764, in all_tests
    private_torrent_test()
  File "test/test.py", line 1539, in private_torrent_test
    test_log_results('should not contain private flag', 0, repr(data), needle in data, None)
TypeError: a bytes-like object is required, not 'str'
This fixes the following traceback:

Traceback (most recent call last):
  File "test/test.py", line 1888, in <module>
    failed += all_tests()
  File "test/test.py", line 1796, in all_tests
    C_funkynames_test(t)
  File "test/test.py", line 776, in C_funkynames_test
    num = create_funkynames(t, d, chr, deep=deep)
  File "test/test.py", line 749, in create_funkynames
    f.write('%02x' % i)
TypeError: a bytes-like object is required, not 'str'
This fixes the following tracebacks:

Traceback (most recent call last):
  File "test/test.py", line 1888, in <module>
    failed += all_tests()
  File "test/test.py", line 1796, in all_tests
    C_funkynames_test(t)
  File "test/test.py", line 799, in C_funkynames_test
    numundecodable = len(list(filter(is_undecodable, ulist)))
  File "test/test.py", line 63, in is_undecodable
    str(s, preferredencoding)
TypeError: decoding str is not supported

Traceback (most recent call last):
  File "test/test.py", line 1869, in <module>
    failed += all_tests()
  File "test/test.py", line 1777, in all_tests
    C_funkynames_test(t)
  File "test/test.py", line 839, in C_funkynames_test
    okcnum = len(list(filter(is_fmtokfn, list(filter(is_fmtencodable, ulist)))))
  File "test/test.py", line 748, in is_fmtokfn
    s = str(s, enc)
TypeError: decoding str is not supported
lxp and others added 30 commits May 19, 2024 03:34
…ll be removed in Python 3.13

Fixes #57

```
Traceback (most recent call last):
*** testing all_unittests_suite
  File "/home/runner/work/cfv/cfv/test/test.py", line 1606, in <module>
    all_unittest_tests()
  File "/home/runner/work/cfv/cfv/test/test.py", line 1542, in all_unittest_tests
    suite = cfvtest.all_unittests_suite()
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/cfv/cfv/test/cfvtest.py", line 245, in all_unittests_suite
    alltests.addTest(unittest.findTestCases(module))
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.3/x64/lib/python3.12/unittest/loader.py", line 489, in findTestCases
    warnings.warn(
DeprecationWarning: unittest.findTestCases() is deprecated and will be removed in Python 3.13. Please use unittest.TestLoader.loadTestsFromModule() instead.
```
Found via `codespell -H`
…version

Currently the CI pipeline fails since FreeBSD ports switched from
Python 3.9 to Python 3.11.
CI: Add new FreeBSD version 13.4
CI: Add new FreeBSD version 15.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⤵️ pull merge-conflict Resolve conflicts manually
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants