<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openmano-mpy/tests/extmod, branch master</title>
<subtitle>MicroPython source and hardware configuration for OpenMano</subtitle>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/'/>
<entry>
<title>tests: Use .errno instead of .args[0] for OSError exceptions.</title>
<updated>2021-04-23T12:03:46+00:00</updated>
<author>
<name>Damien George</name>
</author>
<published>2021-04-22T09:32:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=3123f6918ba18b0a3f7a89500b450f4cb15e1aee'/>
<id>3123f6918ba18b0a3f7a89500b450f4cb15e1aee</id>
<content type='text'>
Signed-off-by: Damien George &lt;damien@micropython.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Damien George &lt;damien@micropython.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>extmod/re1.5: Check and report byte overflow errors in _compilecode.</title>
<updated>2021-04-06T03:36:42+00:00</updated>
<author>
<name>Jeff Epler</name>
</author>
<published>2021-03-28T00:19:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=172fb5230a3943eeb6fbbb4de1dc56b16e2a7637'/>
<id>172fb5230a3943eeb6fbbb4de1dc56b16e2a7637</id>
<content type='text'>
The generated regex code is limited in the range of jumps and counts, and
this commit checks all cases which can overflow given the right kind of
input regex, and returns an error in such a case.

This change assumes that the results that overflow an int8_t do not
overflow a platform int.

Closes: #7078

Signed-off-by: Jeff Epler &lt;jepler@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The generated regex code is limited in the range of jumps and counts, and
this commit checks all cases which can overflow given the right kind of
input regex, and returns an error in such a case.

This change assumes that the results that overflow an int8_t do not
overflow a platform int.

Closes: #7078

Signed-off-by: Jeff Epler &lt;jepler@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/extmod/vfs_fat_fileio2.py: Close test file at end of test.</title>
<updated>2021-03-16T03:49:57+00:00</updated>
<author>
<name>Damien George</name>
</author>
<published>2021-03-16T01:45:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=a79d97cb76cf6ec3794c357b706dd24970317c4a'/>
<id>a79d97cb76cf6ec3794c357b706dd24970317c4a</id>
<content type='text'>
Otherwise it can lead to inconsistent results running subsequent tests.

Signed-off-by: Damien George &lt;damien@micropython.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Otherwise it can lead to inconsistent results running subsequent tests.

Signed-off-by: Damien George &lt;damien@micropython.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/extmod: Add test for ThreadSafeFlag.</title>
<updated>2021-02-16T06:08:36+00:00</updated>
<author>
<name>Jim Mussared</name>
</author>
<published>2021-02-15T06:28:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=83d23059ef80d0d28d1e0769a721c83665b0095f'/>
<id>83d23059ef80d0d28d1e0769a721c83665b0095f</id>
<content type='text'>
Signed-off-by: Jim Mussared &lt;jim.mussared@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Jim Mussared &lt;jim.mussared@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>extmod/uasyncio: Add asyncio.current_task().</title>
<updated>2021-02-13T04:11:17+00:00</updated>
<author>
<name>Jim Mussared</name>
</author>
<published>2021-02-12T03:11:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=7ed99544e4cc1c09bd5abf9f54869c3122fa033b'/>
<id>7ed99544e4cc1c09bd5abf9f54869c3122fa033b</id>
<content type='text'>
Matches CPython behavior.

Fixes #6686
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Matches CPython behavior.

Fixes #6686
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/extmod/vfs_posix.py: Add more tests for VfsPosix class.</title>
<updated>2021-02-11T12:49:44+00:00</updated>
<author>
<name>Damien George</name>
</author>
<published>2021-02-11T12:24:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=df85e4881396d0ebb5942a111fba974ea5c80b77'/>
<id>df85e4881396d0ebb5942a111fba974ea5c80b77</id>
<content type='text'>
Signed-off-by: Damien George &lt;damien@micropython.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Damien George &lt;damien@micropython.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>extmod/vfs_posix_file: Allow closing an already closed file.</title>
<updated>2021-02-11T11:54:41+00:00</updated>
<author>
<name>Damien George</name>
</author>
<published>2021-02-11T11:53:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=26b4ef4c46520f595f39d53bbea7f247c9467370'/>
<id>26b4ef4c46520f595f39d53bbea7f247c9467370</id>
<content type='text'>
Signed-off-by: Damien George &lt;damien@micropython.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Damien George &lt;damien@micropython.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/extmod/utime_time_ns.py: Relax bounds on time_ns measurement.</title>
<updated>2021-02-01T07:44:28+00:00</updated>
<author>
<name>Damien George</name>
</author>
<published>2021-02-01T07:44:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=35a6f6231e482936b7ef7e8fe3dfc790a7beb4ed'/>
<id>35a6f6231e482936b7ef7e8fe3dfc790a7beb4ed</id>
<content type='text'>
Some devices have lower precision than 1ms for time_ns() (eg PYBv1.x has
3.9ms resolution of the RTC) so make the test more lenient for them.

Signed-off-by: Damien George &lt;damien@micropython.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Some devices have lower precision than 1ms for time_ns() (eg PYBv1.x has
3.9ms resolution of the RTC) so make the test more lenient for them.

Signed-off-by: Damien George &lt;damien@micropython.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>extmod/vfs: Check block 0 and 1 when auto-detecting littlefs.</title>
<updated>2021-01-29T04:02:55+00:00</updated>
<author>
<name>Damien George</name>
</author>
<published>2021-01-28T02:09:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=71ea438561b737de7d4bb6bc60412a7e409cf298'/>
<id>71ea438561b737de7d4bb6bc60412a7e409cf298</id>
<content type='text'>
The superblock for littlefs is in block 0 and 1, but block 0 may be erased
or partially written, so block 1 must be checked if block 0 does not have a
valid littlefs superblock in it.

Prior to this commit, the mount of a block device which auto-detected the
filysystem type would fail for littlefs if block 0 did not contain a valid
superblock.  That is now fixed.

Signed-off-by: Damien George &lt;damien@micropython.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The superblock for littlefs is in block 0 and 1, but block 0 may be erased
or partially written, so block 1 must be checked if block 0 does not have a
valid littlefs superblock in it.

Prior to this commit, the mount of a block device which auto-detected the
filysystem type would fail for littlefs if block 0 did not contain a valid
superblock.  That is now fixed.

Signed-off-by: Damien George &lt;damien@micropython.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/extmod: Add test for the precision of utime functions.</title>
<updated>2021-01-23T05:54:57+00:00</updated>
<author>
<name>Oliver Joos</name>
</author>
<published>2020-12-16T20:25:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=419134bea47953888344d325220c376117f6b2b4'/>
<id>419134bea47953888344d325220c376117f6b2b4</id>
<content type='text'>
According to documentation time() has a precision of at least 1 second.
This test runs for 2.5 seconds and calls all utime functions every 100ms.
Then it checks if they returned enough different results.  All functions
with sub-second precision will return ~25 results.  This test passes with
15 results or more.  Functions that do not exist are skipped silently.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
According to documentation time() has a precision of at least 1 second.
This test runs for 2.5 seconds and calls all utime functions every 100ms.
Then it checks if they returned enough different results.  All functions
with sub-second precision will return ~25 results.  This test passes with
15 results or more.  Functions that do not exist are skipped silently.
</pre>
</div>
</content>
</entry>
</feed>
