<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openmano-mpy/tests/io, 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>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>all: Rename "sys" module to "usys".</title>
<updated>2020-09-03T14:10:24+00:00</updated>
<author>
<name>stijn</name>
</author>
<published>2020-06-18T09:19:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=40ad8f1666b265dafc7844d765f45cfae4b6299f'/>
<id>40ad8f1666b265dafc7844d765f45cfae4b6299f</id>
<content type='text'>
This is consistent with the other 'micro' modules and allows implementing
additional features in Python via e.g. micropython-lib's sys.

Note this is a breaking change (not backwards compatible) for ports which
do not enable weak links, as "import sys" must now be replaced with
"import usys".
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is consistent with the other 'micro' modules and allows implementing
additional features in Python via e.g. micropython-lib's sys.

Note this is a breaking change (not backwards compatible) for ports which
do not enable weak links, as "import sys" must now be replaced with
"import usys".
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: Format all Python code with black, except tests in basics subdir.</title>
<updated>2020-03-30T02:21:58+00:00</updated>
<author>
<name>David Lechner</name>
</author>
<published>2020-03-23T02:26:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=3dc324d3f1312e40d3a8ed87e7244966bb756f26'/>
<id>3dc324d3f1312e40d3a8ed87e7244966bb756f26</id>
<content type='text'>
This adds the Python files in the tests/ directory to be formatted with
./tools/codeformat.py.  The basics/ subdirectory is excluded for now so we
aren't changing too much at once.

In a few places `# fmt: off`/`# fmt: on` was used where the code had
special formatting for readability or where the test was actually testing
the specific formatting.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This adds the Python files in the tests/ directory to be formatted with
./tools/codeformat.py.  The basics/ subdirectory is excluded for now so we
aren't changing too much at once.

In a few places `# fmt: off`/`# fmt: on` was used where the code had
special formatting for readability or where the test was actually testing
the specific formatting.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/io: Update tests to use uos.remove() instead of uos.unlink().</title>
<updated>2018-11-26T12:27:28+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
</author>
<published>2018-11-26T05:52:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=5c34c2ff7f0c44ec9e1d77059162584c6bd99c92'/>
<id>5c34c2ff7f0c44ec9e1d77059162584c6bd99c92</id>
<content type='text'>
After Unix port switches from one to another, to be consistent with
baremetal ports.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
After Unix port switches from one to another, to be consistent with
baremetal ports.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: Move non-filesystem io tests to basics dir with io_ prefix.</title>
<updated>2018-06-27T06:55:05+00:00</updated>
<author>
<name>Damien George</name>
</author>
<published>2018-06-20T07:11:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=726804ea405483872ebc93772aea0ab0bfce0bcf'/>
<id>726804ea405483872ebc93772aea0ab0bfce0bcf</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: Add tests using "file" argument in print and sys.print_exception.</title>
<updated>2018-06-20T06:08:25+00:00</updated>
<author>
<name>Damien George</name>
</author>
<published>2018-06-20T06:08:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=b92a8adbfa54dc259554b435a81b6cec19cae99a'/>
<id>b92a8adbfa54dc259554b435a81b6cec19cae99a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/io: Add simple IOBase test.</title>
<updated>2018-06-12T02:29:26+00:00</updated>
<author>
<name>Damien George</name>
</author>
<published>2018-06-04T06:24:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=9144b1f10c5f48a93fdb2aefa528813bd60a2f85'/>
<id>9144b1f10c5f48a93fdb2aefa528813bd60a2f85</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/io/bytesio_ext2: Remove dependency on specific EINVAL value</title>
<updated>2018-05-01T05:48:43+00:00</updated>
<author>
<name>Mike Wadsten</name>
</author>
<published>2018-05-01T01:59:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=9f1eafc38092213bf59cd5dfdd803249077729c3'/>
<id>9f1eafc38092213bf59cd5dfdd803249077729c3</id>
<content type='text'>
If MICROPY_USE_INTERNAL_ERRNO is disabled, MP_EINVAL is not guaranteed
to have the value 22, so we cannot depend on OSError(22,).
Instead, to support any given port's errno values, without relying
on uerrno, we just check that the args[0] is positive.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If MICROPY_USE_INTERNAL_ERRNO is disabled, MP_EINVAL is not guaranteed
to have the value 22, so we cannot depend on OSError(22,).
Instead, to support any given port's errno values, without relying
on uerrno, we just check that the args[0] is positive.
</pre>
</div>
</content>
</entry>
<entry>
<title>py/stream: seek: Consistently handle negative offset for SEEK_SET.</title>
<updated>2017-08-20T19:02:41+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
</author>
<published>2017-08-20T18:57:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=e3383e9352ca7704e650b07038207719c60b56fb'/>
<id>e3383e9352ca7704e650b07038207719c60b56fb</id>
<content type='text'>
Per POSIX, this is EINVAL, so raises OSError(EINVAL).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Per POSIX, this is EINVAL, so raises OSError(EINVAL).
</pre>
</div>
</content>
</entry>
<entry>
<title>all: Use the name MicroPython consistently in comments</title>
<updated>2017-07-31T08:35:40+00:00</updated>
<author>
<name>Alexander Steffen</name>
</author>
<published>2017-06-30T07:22:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=55f33240f3d7051d4213629e92437a36f1fac50e'/>
<id>55f33240f3d7051d4213629e92437a36f1fac50e</id>
<content type='text'>
There were several different spellings of MicroPython present in comments,
when there should be only one.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There were several different spellings of MicroPython present in comments,
when there should be only one.
</pre>
</div>
</content>
</entry>
</feed>
