<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/tests, branch v1.9.4</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.9.4</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.9.4'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2018-05-11T03:51:18+00:00</updated>
<entry>
<title>tests/float/float_parse: Allow test to run on 32-bit archs.</title>
<updated>2018-05-11T03:51:18+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2018-05-11T03:51:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=d2c1db1e5cca03c9a34614af6d12045aefe3d719'/>
<id>urn:sha1:d2c1db1e5cca03c9a34614af6d12045aefe3d719</id>
<content type='text'>
Printing of uPy floats can differ by the floating-point precision on
different architectures (eg 64-bit vs 32-bit x86), so it's not possible to
using printing of floats in some parts of this test.  Instead we can just
check for equivalence with what is known to be the correct answer.
</content>
</entry>
<entry>
<title>py/modbuiltins: Make built-in dir support the __dir__ special method.</title>
<updated>2018-05-10T13:14:23+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2018-05-10T13:10:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=3678a6bdc6a925f2bce6423c41f911229836f946'/>
<id>urn:sha1:3678a6bdc6a925f2bce6423c41f911229836f946</id>
<content type='text'>
If MICROPY_PY_ALL_SPECIAL_METHODS is enabled then dir() will now delegate
to the special method __dir__ if the object it is listing has this method.
</content>
</entry>
<entry>
<title>py/modbuiltins: Make built-in hasattr work properly for user types.</title>
<updated>2018-05-10T13:03:30+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2018-05-10T13:03:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=529860643bc321267376272356886ef39c4c6bd1'/>
<id>urn:sha1:529860643bc321267376272356886ef39c4c6bd1</id>
<content type='text'>
It now allows __getattr__ in a user type to raise AttributeError when the
attribute does not exist.
</content>
</entry>
<entry>
<title>tests/cpydiff: Remove types_int_tobytesfloat now that it doesn't fail.</title>
<updated>2018-05-08T07:05:32+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2018-05-08T07:05:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=2ada1124d42a85e056637fc10c0c2764ba96bdd6'/>
<id>urn:sha1:2ada1124d42a85e056637fc10c0c2764ba96bdd6</id>
<content type='text'>
Commit e269cabe3ed8bed1b7181359febb686edbb748ae added a check that the
first argument to the to_bytes() method is an integer, and now uPy
follows CPython behaviour and raises a TypeError for this test.

Note: CPython checks the argument types before checking the number of
arguments, but uPy does it the other way around, so they give different
exception messages for this test, but still the same type, a TypeError.
</content>
</entry>
<entry>
<title>tests/cpydiff: Remove working cases from types_float_rounding.</title>
<updated>2018-05-04T12:30:50+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2018-05-04T12:30:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=74ab341d3a1bf3fa5979d8aa5bd390ac0bb319a1'/>
<id>urn:sha1:74ab341d3a1bf3fa5979d8aa5bd390ac0bb319a1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tests/cpydiff: Remove types_str_decodeerror now that it succeeds.</title>
<updated>2018-05-04T12:27:14+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2018-05-04T12:27:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=cd9d71edc819615a72e01d3ddd602e9bd4c99803'/>
<id>urn:sha1:cd9d71edc819615a72e01d3ddd602e9bd4c99803</id>
<content type='text'>
Commit 68c28174d0e0ec3f6b1461aea3a0b6a1b84610bb implemented checking for
valid utf-8 data.
</content>
</entry>
<entry>
<title>tests/cpydiff: Remove core_function_unpacking now that it succeeds.</title>
<updated>2018-05-04T12:19:50+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2018-05-04T12:19:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=4b5111f8e1ec1fc0dc0845a090beee1ecbd309df'/>
<id>urn:sha1:4b5111f8e1ec1fc0dc0845a090beee1ecbd309df</id>
<content type='text'>
Commit 1e70fda69fcb4991eb60ed43e610f664ea1319e6 fixes this difference.
</content>
</entry>
<entry>
<title>tests/run-tests: Support esp32 as a target for running the test suite.</title>
<updated>2018-05-02T07:20:48+00:00</updated>
<author>
<name>Ayke van Laethem</name>
<email>aykevanlaethem@gmail.com</email>
</author>
<published>2018-01-02T04:55:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=5eb198c4419d6620da2d500369bce0343ee2767e'/>
<id>urn:sha1:5eb198c4419d6620da2d500369bce0343ee2767e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tests/pyb: Update tests to run correctly on PYBv1.0.</title>
<updated>2018-05-02T05:25:37+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2018-05-02T05:25:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=db2bdad8a2ed0814a64d0859fa6ea435a110d304'/>
<id>urn:sha1:db2bdad8a2ed0814a64d0859fa6ea435a110d304</id>
<content type='text'>
In adcall.py the pyb module may not be imported, so use ADCAll directly.

In dac.py the DAC object now prints more info, so update .exp file.

In spi.py the SPI should be deinitialised upon exit, so the test can run a
second time correctly.
</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>
<email>mikewadsten@gmail.com</email>
</author>
<published>2018-05-01T01:59:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=9f1eafc38092213bf59cd5dfdd803249077729c3'/>
<id>urn:sha1: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>
</entry>
</feed>
