summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/README.md2
-rw-r--r--tests/basics/generator_throw.py4
-rw-r--r--tests/basics/int_big_and2.py4
-rw-r--r--tests/basics/int_big_and3.py4
-rw-r--r--tests/basics/int_big_or.py8
-rw-r--r--tests/basics/int_big_or2.py4
-rw-r--r--tests/basics/int_big_or3.py4
-rw-r--r--tests/basics/int_big_xor.py8
-rw-r--r--tests/basics/int_big_xor2.py4
-rw-r--r--tests/basics/int_big_xor3.py4
-rw-r--r--tests/io/data/bigfile1214
-rw-r--r--tests/ports/cc3200/pin.py6
-rw-r--r--tests/ports/cc3200/uart.py2
13 files changed, 134 insertions, 134 deletions
diff --git a/tests/README.md b/tests/README.md
index 3bc626bf9..54dd07805 100644
--- a/tests/README.md
+++ b/tests/README.md
@@ -177,7 +177,7 @@ internal_bench/bytebuf:
## Test key/certificates
-SSL/TLS tests in `multi_net` and `net_inet` use a
+SSL/TLS tests in `multi_net` and `net_inet` use a
self-signed key/cert pair that is randomly generated and to be used for
testing/demonstration only. You should always generate your own key/cert.
diff --git a/tests/basics/generator_throw.py b/tests/basics/generator_throw.py
index 1b43c125e..067ab2b8e 100644
--- a/tests/basics/generator_throw.py
+++ b/tests/basics/generator_throw.py
@@ -2,7 +2,7 @@
def gen():
yield 123
yield 456
-
+
g = gen()
print(next(g))
try:
@@ -31,7 +31,7 @@ def gen():
except GeneratorExit as e:
print('GeneratorExit', repr(e.args))
yield 456
-
+
# thrown a class
g = gen()
print(next(g))
diff --git a/tests/basics/int_big_and2.py b/tests/basics/int_big_and2.py
index f8c81fe0c..045a90ef7 100644
--- a/tests/basics/int_big_and2.py
+++ b/tests/basics/int_big_and2.py
@@ -1,4 +1,4 @@
-# test + +
+# test + +
print( 97989513389222316022151446562729620153292831887555425160965597396
& 23716683549865351578586448630079789776107310103486834795830390982)
@@ -24,7 +24,7 @@ print( 283894311
print( 40019818573920230246248826511203818792007462193311949166285967147
& 9487909752)
-# test - -
+# test - -
print( -97989513389222316022151446562729620153292831887555425160965597396
& -23716683549865351578586448630079789776107310103486834795830390982)
diff --git a/tests/basics/int_big_and3.py b/tests/basics/int_big_and3.py
index 788ecd823..7a3b415af 100644
--- a/tests/basics/int_big_and3.py
+++ b/tests/basics/int_big_and3.py
@@ -1,4 +1,4 @@
-# test - +
+# test - +
print( -97989513389222316022151446562729620153292831887555425160965597396
& 23716683549865351578586448630079789776107310103486834795830390982)
@@ -24,7 +24,7 @@ print( -283894311
print( -40019818573920230246248826511203818792007462193311949166285967147
& 9487909752)
-# test + -
+# test + -
print( 97989513389222316022151446562729620153292831887555425160965597396
& -23716683549865351578586448630079789776107310103486834795830390982)
diff --git a/tests/basics/int_big_or.py b/tests/basics/int_big_or.py
index 17d993526..ccded3778 100644
--- a/tests/basics/int_big_or.py
+++ b/tests/basics/int_big_or.py
@@ -3,7 +3,7 @@ print(0 | (1 << 80))
a = 0xfffffffffffffffffffffffffffff
print(a | (1 << 200))
-# test + +
+# test + +
print(0 | (1 << 80))
print((1 << 80) | (1 << 80))
@@ -15,7 +15,7 @@ print(a | (1 << 200))
print(a | a == 0)
print(bool(a | a))
-# test - +
+# test - +
print((-1 << 80) | (1 << 80))
print((-1 << 80) | 0)
@@ -25,7 +25,7 @@ print((-a) | (1 << 200))
print((-a) | a == 0)
print(bool((-a) | a))
-# test + -
+# test + -
print(0 | (-1 << 80))
print((1 << 80) | (-1 << 80))
@@ -35,7 +35,7 @@ print(a | (-1 << 200))
print(a | (-a) == 0)
print(bool(a | (-a)))
-# test - -
+# test - -
print((-1 << 80) | (-1 << 80))
diff --git a/tests/basics/int_big_or2.py b/tests/basics/int_big_or2.py
index 255495150..92d76c770 100644
--- a/tests/basics/int_big_or2.py
+++ b/tests/basics/int_big_or2.py
@@ -1,4 +1,4 @@
-# test + +
+# test + +
print( 97989513389222316022151446562729620153292831887555425160965597396
| 23716683549865351578586448630079789776107310103486834795830390982)
@@ -23,7 +23,7 @@ print( 283894311
print( 40019818573920230246248826511203818792007462193311949166285967147
| 9487909752)
-# test - -
+# test - -
print( -97989513389222316022151446562729620153292831887555425160965597396
| -23716683549865351578586448630079789776107310103486834795830390982)
diff --git a/tests/basics/int_big_or3.py b/tests/basics/int_big_or3.py
index 07edaea2d..212b3da8a 100644
--- a/tests/basics/int_big_or3.py
+++ b/tests/basics/int_big_or3.py
@@ -1,4 +1,4 @@
-# test - +
+# test - +
print( -97989513389222316022151446562729620153292831887555425160965597396
| 23716683549865351578586448630079789776107310103486834795830390982)
@@ -24,7 +24,7 @@ print( -283894311
print( -40019818573920230246248826511203818792007462193311949166285967147
| 9487909752)
-# test + -
+# test + -
print( 97989513389222316022151446562729620153292831887555425160965597396
| -23716683549865351578586448630079789776107310103486834795830390982)
diff --git a/tests/basics/int_big_xor.py b/tests/basics/int_big_xor.py
index cd1d9ae97..28b191d3d 100644
--- a/tests/basics/int_big_xor.py
+++ b/tests/basics/int_big_xor.py
@@ -1,4 +1,4 @@
-# test + +
+# test + +
print(0 ^ (1 << 80))
print((1 << 80) ^ (1 << 80))
@@ -10,7 +10,7 @@ print(a ^ (1 << 200))
print(a ^ a == 0)
print(bool(a ^ a))
-# test - +
+# test - +
print((-1 << 80) ^ (1 << 80))
print((-1 << 80) ^ 0)
@@ -22,7 +22,7 @@ print(bool((-a) ^ a))
i = -1
print(i ^ 0xffffffffffffffff) # carry overflows to higher digit
-# test + -
+# test + -
print(0 ^ (-1 << 80))
print((1 << 80) ^ (-1 << 80))
@@ -32,7 +32,7 @@ print(a ^ (-1 << 200))
print(a ^ (-a) == 0)
print(bool(a ^ (-a)))
-# test - -
+# test - -
print((-1 << 80) ^ (-1 << 80))
diff --git a/tests/basics/int_big_xor2.py b/tests/basics/int_big_xor2.py
index b5b3db60c..21ef842f8 100644
--- a/tests/basics/int_big_xor2.py
+++ b/tests/basics/int_big_xor2.py
@@ -1,4 +1,4 @@
-# test + +
+# test + +
print( 97989513389222316022151446562729620153292831887555425160965597396
^ 23716683549865351578586448630079789776107310103486834795830390982)
@@ -24,7 +24,7 @@ print( 283894311
print( 40019818573920230246248826511203818792007462193311949166285967147
^ 9487909752)
-# test - -
+# test - -
print( -97989513389222316022151446562729620153292831887555425160965597396
^ -23716683549865351578586448630079789776107310103486834795830390982)
diff --git a/tests/basics/int_big_xor3.py b/tests/basics/int_big_xor3.py
index 00881e374..ff5e9aeff 100644
--- a/tests/basics/int_big_xor3.py
+++ b/tests/basics/int_big_xor3.py
@@ -1,4 +1,4 @@
-# test - +
+# test - +
print( -97989513389222316022151446562729620153292831887555425160965597396
^ 23716683549865351578586448630079789776107310103486834795830390982)
@@ -24,7 +24,7 @@ print( -283894311
print( -40019818573920230246248826511203818792007462193311949166285967147
^ 9487909752)
-# test + -
+# test + -
print( 97989513389222316022151446562729620153292831887555425160965597396
^ -23716683549865351578586448630079789776107310103486834795830390982)
diff --git a/tests/io/data/bigfile1 b/tests/io/data/bigfile1
index 5afbf01a6..777c436a2 100644
--- a/tests/io/data/bigfile1
+++ b/tests/io/data/bigfile1
@@ -1,147 +1,147 @@
{
"info": {
- "maintainer": null,
- "docs_url": "",
- "requires_python": null,
- "maintainer_email": null,
- "cheesecake_code_kwalitee_id": null,
- "keywords": null,
- "package_url": "http://pypi.python.org/pypi/micropython-uasyncio",
- "author": "MicroPython Developers",
- "author_email": "micro-python@googlegroups.com",
- "download_url": "UNKNOWN",
- "platform": "UNKNOWN",
- "version": "0.8.1",
- "cheesecake_documentation_id": null,
- "_pypi_hidden": false,
- "description": "Lightweight asyncio-like library built around native Python coroutines, not around un-Python devices like callback mess.",
- "release_url": "http://pypi.python.org/pypi/micropython-uasyncio/0.8.1",
+ "maintainer": null,
+ "docs_url": "",
+ "requires_python": null,
+ "maintainer_email": null,
+ "cheesecake_code_kwalitee_id": null,
+ "keywords": null,
+ "package_url": "http://pypi.python.org/pypi/micropython-uasyncio",
+ "author": "MicroPython Developers",
+ "author_email": "micro-python@googlegroups.com",
+ "download_url": "UNKNOWN",
+ "platform": "UNKNOWN",
+ "version": "0.8.1",
+ "cheesecake_documentation_id": null,
+ "_pypi_hidden": false,
+ "description": "Lightweight asyncio-like library built around native Python coroutines, not around un-Python devices like callback mess.",
+ "release_url": "http://pypi.python.org/pypi/micropython-uasyncio/0.8.1",
"downloads": {
- "last_month": 942,
- "last_week": 173,
+ "last_month": 942,
+ "last_week": 173,
"last_day": 29
- },
- "_pypi_ordering": 6,
- "classifiers": [],
- "name": "micropython-uasyncio",
- "bugtrack_url": null,
- "license": "MIT",
- "summary": "uasyncio module for MicroPython",
- "home_page": "https://github.com/micropython/micropython/issues/405",
- "stable_version": null,
+ },
+ "_pypi_ordering": 6,
+ "classifiers": [],
+ "name": "micropython-uasyncio",
+ "bugtrack_url": null,
+ "license": "MIT",
+ "summary": "uasyncio module for MicroPython",
+ "home_page": "https://github.com/micropython/micropython/issues/405",
+ "stable_version": null,
"cheesecake_installability_id": null
- },
+ },
"releases": {
"0.8": [
{
- "has_sig": false,
- "upload_time": "2015-01-01T23:52:41",
- "comment_text": "",
- "python_version": "source",
- "url": "https://pypi.python.org/packages/source/m/micropython-uasyncio/micropython-uasyncio-0.8.tar.gz",
- "md5_digest": "5df4d0d6b5fdb7c05fc418e5785e1336",
- "downloads": 352,
- "filename": "micropython-uasyncio-0.8.tar.gz",
- "packagetype": "sdist",
+ "has_sig": false,
+ "upload_time": "2015-01-01T23:52:41",
+ "comment_text": "",
+ "python_version": "source",
+ "url": "https://pypi.python.org/packages/source/m/micropython-uasyncio/micropython-uasyncio-0.8.tar.gz",
+ "md5_digest": "5df4d0d6b5fdb7c05fc418e5785e1336",
+ "downloads": 352,
+ "filename": "micropython-uasyncio-0.8.tar.gz",
+ "packagetype": "sdist",
"size": 2476
}
- ],
+ ],
"0.6.2": [
{
- "has_sig": false,
- "upload_time": "2014-10-18T11:26:52",
- "comment_text": "",
- "python_version": "source",
- "url": "https://pypi.python.org/packages/source/m/micropython-uasyncio/micropython-uasyncio-0.6.2.tar.gz",
- "md5_digest": "c85fa7c11ef437f4e73c1fcd639db066",
- "downloads": 475,
- "filename": "micropython-uasyncio-0.6.2.tar.gz",
- "packagetype": "sdist",
+ "has_sig": false,
+ "upload_time": "2014-10-18T11:26:52",
+ "comment_text": "",
+ "python_version": "source",
+ "url": "https://pypi.python.org/packages/source/m/micropython-uasyncio/micropython-uasyncio-0.6.2.tar.gz",
+ "md5_digest": "c85fa7c11ef437f4e73c1fcd639db066",
+ "downloads": 475,
+ "filename": "micropython-uasyncio-0.6.2.tar.gz",
+ "packagetype": "sdist",
"size": 3262
}
- ],
+ ],
"0.6.1": [
{
- "has_sig": false,
- "upload_time": "2014-10-11T02:21:17",
- "comment_text": "",
- "python_version": "source",
- "url": "https://pypi.python.org/packages/source/m/micropython-uasyncio/micropython-uasyncio-0.6.1.tar.gz",
- "md5_digest": "48cb0db7d8249d5f4a86db9c4b302d03",
- "downloads": 507,
- "filename": "micropython-uasyncio-0.6.1.tar.gz",
- "packagetype": "sdist",
+ "has_sig": false,
+ "upload_time": "2014-10-11T02:21:17",
+ "comment_text": "",
+ "python_version": "source",
+ "url": "https://pypi.python.org/packages/source/m/micropython-uasyncio/micropython-uasyncio-0.6.1.tar.gz",
+ "md5_digest": "48cb0db7d8249d5f4a86db9c4b302d03",
+ "downloads": 507,
+ "filename": "micropython-uasyncio-0.6.1.tar.gz",
+ "packagetype": "sdist",
"size": 3237
}
- ],
+ ],
"0.8.1": [
{
- "has_sig": false,
- "upload_time": "2015-01-04T20:02:03",
- "comment_text": "",
- "python_version": "source",
- "url": "https://pypi.python.org/packages/source/m/micropython-uasyncio/micropython-uasyncio-0.8.1.tar.gz",
- "md5_digest": "940d2647b8355289d54de543ff710b05",
- "downloads": 249,
- "filename": "micropython-uasyncio-0.8.1.tar.gz",
- "packagetype": "sdist",
+ "has_sig": false,
+ "upload_time": "2015-01-04T20:02:03",
+ "comment_text": "",
+ "python_version": "source",
+ "url": "https://pypi.python.org/packages/source/m/micropython-uasyncio/micropython-uasyncio-0.8.1.tar.gz",
+ "md5_digest": "940d2647b8355289d54de543ff710b05",
+ "downloads": 249,
+ "filename": "micropython-uasyncio-0.8.1.tar.gz",
+ "packagetype": "sdist",
"size": 2484
}
- ],
+ ],
"0.7": [
{
- "has_sig": false,
- "upload_time": "2014-10-23T22:02:11",
- "comment_text": "",
- "python_version": "source",
- "url": "https://pypi.python.org/packages/source/m/micropython-uasyncio/micropython-uasyncio-0.7.tar.gz",
- "md5_digest": "81250a0ee6649b5117878d5788ba96d3",
- "downloads": 457,
- "filename": "micropython-uasyncio-0.7.tar.gz",
- "packagetype": "sdist",
+ "has_sig": false,
+ "upload_time": "2014-10-23T22:02:11",
+ "comment_text": "",
+ "python_version": "source",
+ "url": "https://pypi.python.org/packages/source/m/micropython-uasyncio/micropython-uasyncio-0.7.tar.gz",
+ "md5_digest": "81250a0ee6649b5117878d5788ba96d3",
+ "downloads": 457,
+ "filename": "micropython-uasyncio-0.7.tar.gz",
+ "packagetype": "sdist",
"size": 2277
}
- ],
+ ],
"0.7.1": [
{
- "has_sig": false,
- "upload_time": "2014-11-04T00:56:16",
- "comment_text": "",
- "python_version": "source",
- "url": "https://pypi.python.org/packages/source/m/micropython-uasyncio/micropython-uasyncio-0.7.1.tar.gz",
- "md5_digest": "21eda0501142830730cd82e1b0fa1a33",
- "downloads": 412,
- "filename": "micropython-uasyncio-0.7.1.tar.gz",
- "packagetype": "sdist",
+ "has_sig": false,
+ "upload_time": "2014-11-04T00:56:16",
+ "comment_text": "",
+ "python_version": "source",
+ "url": "https://pypi.python.org/packages/source/m/micropython-uasyncio/micropython-uasyncio-0.7.1.tar.gz",
+ "md5_digest": "21eda0501142830730cd82e1b0fa1a33",
+ "downloads": 412,
+ "filename": "micropython-uasyncio-0.7.1.tar.gz",
+ "packagetype": "sdist",
"size": 2474
}
- ],
+ ],
"0.6": [
{
- "has_sig": false,
- "upload_time": "2014-08-27T00:17:45",
- "comment_text": "",
- "python_version": "source",
- "url": "https://pypi.python.org/packages/source/m/micropython-uasyncio/micropython-uasyncio-0.6.tar.gz",
- "md5_digest": "9d0b15108c5ade3a6902c9370c9dacf1",
- "downloads": 668,
- "filename": "micropython-uasyncio-0.6.tar.gz",
- "packagetype": "sdist",
+ "has_sig": false,
+ "upload_time": "2014-08-27T00:17:45",
+ "comment_text": "",
+ "python_version": "source",
+ "url": "https://pypi.python.org/packages/source/m/micropython-uasyncio/micropython-uasyncio-0.6.tar.gz",
+ "md5_digest": "9d0b15108c5ade3a6902c9370c9dacf1",
+ "downloads": 668,
+ "filename": "micropython-uasyncio-0.6.tar.gz",
+ "packagetype": "sdist",
"size": 3246
}
]
- },
+ },
"urls": [
{
- "has_sig": false,
- "upload_time": "2015-01-04T20:02:03",
- "comment_text": "",
- "python_version": "source",
- "url": "https://pypi.python.org/packages/source/m/micropython-uasyncio/micropython-uasyncio-0.8.1.tar.gz",
- "md5_digest": "940d2647b8355289d54de543ff710b05",
- "downloads": 249,
- "filename": "micropython-uasyncio-0.8.1.tar.gz",
- "packagetype": "sdist",
+ "has_sig": false,
+ "upload_time": "2015-01-04T20:02:03",
+ "comment_text": "",
+ "python_version": "source",
+ "url": "https://pypi.python.org/packages/source/m/micropython-uasyncio/micropython-uasyncio-0.8.1.tar.gz",
+ "md5_digest": "940d2647b8355289d54de543ff710b05",
+ "downloads": 249,
+ "filename": "micropython-uasyncio-0.8.1.tar.gz",
+ "packagetype": "sdist",
"size": 2484
}
]
diff --git a/tests/ports/cc3200/pin.py b/tests/ports/cc3200/pin.py
index 9ffd152e9..43537bba5 100644
--- a/tests/ports/cc3200/pin.py
+++ b/tests/ports/cc3200/pin.py
@@ -1,7 +1,7 @@
-"""
-This test need a set of pins which can be set as inputs and have no external
+"""
+This test need a set of pins which can be set as inputs and have no external
pull up or pull down connected.
-GP12 and GP17 must be connected together
+GP12 and GP17 must be connected together
"""
from machine import Pin
import os
diff --git a/tests/ports/cc3200/uart.py b/tests/ports/cc3200/uart.py
index 94ac9051b..c92c8041f 100644
--- a/tests/ports/cc3200/uart.py
+++ b/tests/ports/cc3200/uart.py
@@ -1,5 +1,5 @@
"""
-UART test for the CC3200 based boards.
+UART test for the CC3200 based boards.
UART0 and UART1 must be connected together for this test to pass.
"""