aboutsummaryrefslogtreecommitdiff
path: root/tests/basics
diff options
context:
space:
mode:
authorDamien George2014-09-23 12:09:26 +0000
committerDamien George2014-09-23 14:15:45 +0000
commit96e20c600f6498c403445956077f85dd2fb548aa (patch)
tree2a6082579f34e863f1066b734ad24eba92841896 /tests/basics
parent5a5555e385c0a6ff380a269805ab99a6094e30da (diff)
tests: Fix uctypes tests to run on 64bit arch; enable more native tests.
Diffstat (limited to 'tests/basics')
-rw-r--r--tests/basics/bytes.py5
-rw-r--r--tests/basics/bytes_gen.py5
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/basics/bytes.py b/tests/basics/bytes.py
index ce027e7d1..8f2917550 100644
--- a/tests/basics/bytes.py
+++ b/tests/basics/bytes.py
@@ -33,11 +33,6 @@ print(bytes(3))
print(bytes([3, 2, 1]))
print(bytes(range(5)))
-def gen():
- for i in range(4):
- yield i
-print(bytes(gen()))
-
# Make sure bytes are not mistreated as unicode
x = b"\xff\x8e\xfe}\xfd\x7f"
print(len(x))
diff --git a/tests/basics/bytes_gen.py b/tests/basics/bytes_gen.py
new file mode 100644
index 000000000..12031ef72
--- /dev/null
+++ b/tests/basics/bytes_gen.py
@@ -0,0 +1,5 @@
+# construct a bytes object from a generator
+def gen():
+ for i in range(4):
+ yield i
+print(bytes(gen()))