Wykres commitów

1375 Commity (a336c29cc5d9117bc56059c7f9dc13008fa9af4c)

Autor SHA1 Wiadomość Data
Paul Sokolovsky cad77291d5 asyncio_slow: Rename "async()" to "ensure_future()".
"async()" was deprecated in CPython due to introduction of the similar
keyword, and causes SyntaxError in MicroPython.
2017-09-10 00:08:32 +03:00
Paul Sokolovsky 9a5f94b807 time: Release 0.5. 2017-09-09 14:02:20 +03:00
Paul Sokolovsky d69aaba546 time: Introduce "real" struct_time.
Implemented using namedtuple and lacks tm_zone, tm_gmtoff fields.
2017-09-09 14:01:00 +03:00
Paul Sokolovsky 2472ad4e0e time: Release 0.4. 2017-09-05 01:05:27 +03:00
Paul Sokolovsky c00210106b time: Add daylight and timezone vars. 2017-09-05 01:04:10 +03:00
Paul Sokolovsky 50ae5ef4aa time: Add dummy struct_time constructor.
CPython compatibility. As we don't have a proper struct_time, and use
tuple instead, the constructor is identity function.
2017-09-04 12:59:19 +03:00
Paul Sokolovsky f51d7ec0db time: time_t is at least long int, convert it as such.
Rumors even says that it may be long long on recent 32-bit Linux x86
systems.
2017-09-04 12:47:29 +03:00
Paul Sokolovsky c18ef60871 multiprocessing: Release 0.1.2. 2017-09-03 11:11:39 +03:00
Paul Sokolovsky 13a6f4955c multiprocessing: tests: Turn into proper tests, make CPython compatible. 2017-09-03 11:10:56 +03:00
Paul Sokolovsky 3e3c6fcaa6 multiprocessing: Fix from_bytes/to_bytes calls.
As they're used for internal communication, just use "little" for
endianness.
2017-09-03 11:09:05 +03:00
Paul Sokolovsky 1522d3eb15 test.support: Release 0.1.2. 2017-09-03 11:07:46 +03:00
Paul Sokolovsky 67bc4317a0 unittest: Release 0.3. 2017-09-03 11:06:37 +03:00
Paul Sokolovsky 61a85a1c2f test.support: Test stats are now printed by TestRunner.run(). 2017-09-03 07:17:45 +03:00
Paul Sokolovsky 82386e86ff unittest: Test stats are now printed by TestRunner.run().
Like done by CPython version.
2017-09-03 06:45:20 +03:00
Paul Sokolovsky 74140defb7 unittest: Run testcases more correctly, count failures.
Test methdos are now run wrapped in try/except/finally. failures are
counted, instead of aborting on the first.
2017-09-02 17:30:27 +03:00
Paul Sokolovsky ec67618df1 uasyncio.core: Release 1.5. 2017-09-01 15:14:32 +03:00
Paul Sokolovsky b2dd97cd6c xmltok: test_xmltok: Find data file relative to module dir.
Allows to run via test aggregators.
2017-08-30 00:19:13 +03:00
Paul Sokolovsky ba14d0ab70 sqlite3: Add test for CREATE TABLE/INSERT/lastrowid. 2017-08-30 00:11:51 +03:00
Paul Sokolovsky 5cb3fe10f0 sqlite3: test_sqlite3: Turn into a real test (with asserts). 2017-08-30 00:05:07 +03:00
Paul Sokolovsky d113ea4751 sqlite3: Release 0.2.4. 2017-08-29 00:32:16 +03:00
Paul Sokolovsky 2d4bc69975 sqlite3: Pass sys.byteorder to int.from_bytes().
Following it now being mandatory in MicroPython.
2017-08-29 00:31:44 +03:00
Paul Sokolovsky 4cae9a3fc0 time: Add test_strftime.py.
Based on test patterns prepared by @sschwartzcpu.
2017-08-27 12:34:47 +03:00
Paul Sokolovsky eaf7228ce6 time: Release 0.3.2. 2017-08-27 12:24:10 +03:00
sschwartzcpu ac66b1ca1a time: strftime: 2nd parameter must be a struct tm tuple.
As described in https://docs.python.org/3/library/time.html#time.strftime
2017-08-27 12:19:47 +03:00
Paul Sokolovsky e14d8532fd codecs: Add dummy module. 2017-08-26 10:28:41 +03:00
Paul Sokolovsky 935509ac4b ssl: Release 0.0.1. 2017-08-20 17:59:54 +03:00
Paul Sokolovsky ea60d9d71f ssl: Add dummy module, redirecting to ussl. 2017-08-20 17:59:01 +03:00
Paul Sokolovsky da9228c9b2 xmltok: Release 0.2. 2017-08-20 17:53:57 +03:00
ThunderEX fdf984d07d xmltok: Skip comment markup in XML.
This is provisional solution, at later time, comments may become tokenized
and fed to the caller, like other syntactic elements.
2017-08-20 17:52:28 +03:00
Paul Sokolovsky 79f13b6e4a uasyncio.core/test_full_wait: Update for .wait() called on each loop iter.
This fixes this mock test after the recent change to make I/O scheduling
fair.
2017-08-20 17:06:07 +03:00
Paul Sokolovsky eef054d98a uasyncio.core: Make I/O scheduling fair wrt to computational scheduling.
If there is a coroutine to run immediately (with wait delay <= 0),
uasyncio.core never called .wait() method, which is required to
process I/O events (and schedule coroutines waiting for them). So
now, call .wait(0) even if there's a coroutine to run immediately.
2017-08-20 17:04:31 +03:00
Peter Hinch 65605e3de8 uasyncio: Add test showing I/O scheduling starvation.
If there is a coroutine to run immediately (with wait delay <= 0),
uasyncio.core never calls .wait() method, which is required to
process I/O events (and schedule coroutines waiting for them).

This test demonstrates the problem.
2017-08-20 16:36:15 +03:00
Paul Sokolovsky c7b277ff7c binascii: Add test which exposes to_bytes() problem in the module. 2017-08-15 10:26:25 +03:00
Christopher Cooper 20d9cdbd5f binascii: Add required argument to <int>.to_bytes(...) call.
The <int>.to_bytes(...) function requires two arguments.  The first
specifies the number of bytes to return, and the second specifies the
endianness of those bytes.  By definition, Base64 encoding is big
endian.
2017-08-15 10:24:59 +03:00
Christopher Cooper 96c981b1ee hmac: Calculate correct digest when non-trivial key is used.
This incorrect behavior was a result of the function that performs
table-driven byte translation. The function first used the chr(...)
function to convert each resulting byte, represented as an integer,
to a string of length one. Then, the <str>.encode(...) function was
used to convert the string to a byte string with an intended length
of one. That didn't work well for bytes with high bit set, as they
were trated as UTF-8 chars. Instead, perform operations directly on
bytes.

This was an artifact of porting this to MicroPython, as the original
CPython module uses bytes.translate(...) method (not available in
uPy).
2017-08-13 14:52:52 +03:00
Paul Sokolovsky 6bf4207215 README: Update, more details about package sources. 2017-08-13 13:52:49 +03:00
Christopher Cooper c5ebfe1c72 base64: Add missing dependencies. 2017-08-12 08:46:38 +03:00
Paul Sokolovsky c265899cb7 re-pcre: Release 0.2.5. 2017-07-06 00:15:54 +03:00
Paul Sokolovsky b8718dc7cc re-pcre: Support .group() method without args.
Defaults to 0.
2017-07-06 00:15:17 +03:00
Paul Sokolovsky 607c62a813 umqtt.simple: Release 1.3.4. 2017-06-27 21:18:43 +03:00
puuu a09b3ec20a umqtt.simple: Do DNS lookup in connect() method. 2017-06-27 21:16:13 +03:00
Paul Sokolovsky f9f2264d99 typing: Add dummy module. 2017-06-23 15:41:15 +03:00
Paul Sokolovsky 24ba28a352 socket: Add INADDR_ANY. 2017-06-22 19:59:54 +03:00
Paul Sokolovsky 0636230639 upip: Release 1.2.1. 2017-06-16 02:47:52 +03:00
Anne Jan Brouwer e8053fb06a upip: Add server_hostname param to ussl.wrap_socket() call. 2017-06-15 16:04:58 +02:00
Paul Sokolovsky 7522c14183 urequests: Release 0.4.4. 2017-06-14 19:37:36 +03:00
Paul Sokolovsky 78ce2a8957 urequests: Add server_hostname param to ussl.wrap_socket() call. 2017-06-14 19:37:08 +03:00
Paul Sokolovsky efd7cd5ff9 urllib.urequest: Release 0.4.4. 2017-06-14 19:35:25 +03:00
Paul Sokolovsky 633f030d6f urllib.urequest: Add server_hostname param to ussl.wrap_socket() call. 2017-06-14 18:31:16 +03:00
Paul Sokolovsky 98502a223a pkg_resources: Release 0.2.1. 2017-06-10 16:16:29 +03:00