- portlint: OK (looks fine.)
- testport: OK (poudriere: 1300077, [amd64, i386, armv7, aarch64], 'BUILD_ALL_PYTHON_FLAVORS=1', [py27, py35, py36, py37, py38] tested)
- unittest: OK (
Python2.7 on armv7: Ran 167 tests in 8.634s FAILED (failures=1)
Python3.5 on armv7: Ran 167 tests in 8.619s FAILED (failures=1, errors=1) [0]
Python3.6 on armv7: Ran 167 tests in 8.140s FAILED (failures=1, errors=1)
Python3.7 on armv7: Ran 167 tests in 8.973s OK
Python3.8 on armv7: Ran 167 tests in 8.012s OK
)
-------------------------------------------------------------------
[0]:
The UTF-8 mode is enabled by default when the locale is C and
locale.getpreferredencoding() returns 'UTF-8' in the UTF-8 mode
since python 3.7
======================================================================
ERROR: test_09_utf8_again (tests.test_utf8.Utf8TestCase)
Test Extra UTF8 input
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/ports/sysutils/py-crontab/work-py35/python-crontab-ba23056ddf1a00ecfd14b0a31c2e0cdad132f8d0-ba23056ddf1a00ecfd14b0a31c2e0cdad132f8d0/tests/test_utf8.py", line 102, in test_09_utf8_again
fhl.write('# \u4e2d\u6587\n30 2 * * * source /etc/profile\n30 1 * * * source /etc/profile')
UnicodeEncodeError: 'ascii' codec can't encode characters in position 2-3: ordinal not in range(128)
======================================================================
FAIL: test_02_write (tests.test_utf8.Utf8TestCase)
Write/Read UTF-8 Filename
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/ports/sysutils/py-crontab/work-py35/python-crontab-ba23056ddf1a00ecfd14b0a31c2e0cdad132f8d0-ba23056ddf1a00ecfd14b0a31c2e0cdad132f8d0/tests/test_utf8.py", line 55, in test_02_write
self.assertEqual(locale.getpreferredencoding(), 'UTF-8')
AssertionError: 'US-ASCII' != 'UTF-8'
- US-ASCII
+ UTF-8