<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openmano-mpy/tests/misc, 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/misc/sys_settrace_features.py: Fix running with non-dflt encoding.</title>
<updated>2020-12-18T02:57:17+00:00</updated>
<author>
<name>stijn</name>
</author>
<published>2020-12-15T11:03:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=069557edef84a4f37ad52ae93838129da8e5fe77'/>
<id>069557edef84a4f37ad52ae93838129da8e5fe77</id>
<content type='text'>
Notably git-cmd which comes with git installations on Windows alters the
encoding resulting in CPython tracing encodings/cp1252.py calls.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Notably git-cmd which comes with git installations on Windows alters the
encoding resulting in CPython tracing encodings/cp1252.py calls.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/misc/sys_settrace: Make test output independent of invoked path.</title>
<updated>2020-12-18T02:56:45+00:00</updated>
<author>
<name>stijn</name>
</author>
<published>2020-12-15T10:54:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=108183fcc01f722d17e373f91f392a2a60ac787a'/>
<id>108183fcc01f722d17e373f91f392a2a60ac787a</id>
<content type='text'>
The original logic of reducing a full path to a relative one assumes
"tests/misc" is in the filename which is limited in usage: it never works
for CPython on Windows since that will use a backslash as path separator,
and also won't work when the filename is a path not relative to the tests
directory which happens for example in the common case of running
"./run-tests -d misc".

Fix all cases by printing only the bare filename, which requires them all
to start with sys_settrace_ hence the renaming.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The original logic of reducing a full path to a relative one assumes
"tests/misc" is in the filename which is limited in usage: it never works
for CPython on Windows since that will use a backslash as path separator,
and also won't work when the filename is a path not relative to the tests
directory which happens for example in the common case of running
"./run-tests -d misc".

Fix all cases by printing only the bare filename, which requires them all
to start with sys_settrace_ hence the renaming.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/misc/sys_settrace_features.py: Ignore CPython zipimport traces.</title>
<updated>2020-12-14T02:04:50+00:00</updated>
<author>
<name>Damien George</name>
</author>
<published>2020-12-13T23:29:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=e0bb7a53c3244ffa720fcdb64be5784379c5f596'/>
<id>e0bb7a53c3244ffa720fcdb64be5784379c5f596</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: Rename "array" module to "uarray".</title>
<updated>2019-10-22T08:16:54+00:00</updated>
<author>
<name>Damien George</name>
</author>
<published>2019-10-22T06:33:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=30e25174bbf077e8a3cbe2a3a6a97795f8d67dc2'/>
<id>30e25174bbf077e8a3cbe2a3a6a97795f8d67dc2</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 for sys.settrace feature.</title>
<updated>2019-08-30T06:48:22+00:00</updated>
<author>
<name>Milan Rossa</name>
</author>
<published>2019-08-14T14:11:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=498e35219e1f54243ff6d650781c525e20cad9b1'/>
<id>498e35219e1f54243ff6d650781c525e20cad9b1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>py/vm: Don't add traceback info for exceptions that are re-raised.</title>
<updated>2019-08-28T02:31:53+00:00</updated>
<author>
<name>Damien George</name>
</author>
<published>2019-08-21T06:08:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=08c1fe556915c912598d5a5d5db0f5942f3a333d'/>
<id>08c1fe556915c912598d5a5d5db0f5942f3a333d</id>
<content type='text'>
With this patch exceptions that are re-raised have improved tracebacks
(less confusing, match CPython), and it makes re-raise slightly more
efficient (in time and RAM) because they no longer need to add a traceback.
Also general VM performance is not measurably affected.

Partially fixes issue #2928.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
With this patch exceptions that are re-raised have improved tracebacks
(less confusing, match CPython), and it makes re-raise slightly more
efficient (in time and RAM) because they no longer need to add a traceback.
Also general VM performance is not measurably affected.

Partially fixes issue #2928.
</pre>
</div>
</content>
</entry>
<entry>
<title>py/vm: Don't add traceback info for exc's propagated through a finally.</title>
<updated>2019-08-28T02:31:49+00:00</updated>
<author>
<name>Damien George</name>
</author>
<published>2019-08-21T06:07:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=16f6169c88a5fd93b151149e561d177557fcc760'/>
<id>16f6169c88a5fd93b151149e561d177557fcc760</id>
<content type='text'>
With this patch exception tracebacks that go through a finally are improved
(less confusing, match CPython), and it makes finally's slightly more
efficient (in time and RAM) because they no longer need to add a traceback.

Partially fixes issue #2928.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
With this patch exception tracebacks that go through a finally are improved
(less confusing, match CPython), and it makes finally's slightly more
efficient (in time and RAM) because they no longer need to add a traceback.

Partially fixes issue #2928.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/misc/sys_atexit: Add test for new sys.atexit feature.</title>
<updated>2019-08-15T07:31:04+00:00</updated>
<author>
<name>Milan Rossa</name>
</author>
<published>2019-08-05T13:12:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.0x7felf.com/openmano-mpy/commit/?id=28cb15d1313c77a04d1b119089dd1b4c7ac5ebb1'/>
<id>28cb15d1313c77a04d1b119089dd1b4c7ac5ebb1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
