forked from cfv-project/cfv
-
Notifications
You must be signed in to change notification settings - Fork 0
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
pull
wants to merge
196
commits into
RogueScholar:python3
Choose a base branch
from
cfv-project:python3
base: python3
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
…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. ```
Add support for Python 3.12/3.13
Fix typos
…version Currently the CI pipeline fails since FreeBSD ports switched from Python 3.9 to Python 3.11.
Fix FreeBSD CI pipeline
Add support for Python 3.14
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 : )