summaryrefslogtreecommitdiff
path: root/tests/feature_check
diff options
context:
space:
mode:
Diffstat (limited to 'tests/feature_check')
-rw-r--r--tests/feature_check/byteorder.py1
-rw-r--r--tests/feature_check/coverage.py4
-rw-r--r--tests/feature_check/float.py4
-rw-r--r--tests/feature_check/reverse_ops.py2
4 files changed, 6 insertions, 5 deletions
diff --git a/tests/feature_check/byteorder.py b/tests/feature_check/byteorder.py
index d60f93956..c82a41a24 100644
--- a/tests/feature_check/byteorder.py
+++ b/tests/feature_check/byteorder.py
@@ -1,2 +1,3 @@
import sys
+
print(sys.byteorder)
diff --git a/tests/feature_check/coverage.py b/tests/feature_check/coverage.py
index dcda53eae..82647ee31 100644
--- a/tests/feature_check/coverage.py
+++ b/tests/feature_check/coverage.py
@@ -1,5 +1,5 @@
try:
extra_coverage
- print('coverage')
+ print("coverage")
except NameError:
- print('no')
+ print("no")
diff --git a/tests/feature_check/float.py b/tests/feature_check/float.py
index af93f5976..d6d2a99d2 100644
--- a/tests/feature_check/float.py
+++ b/tests/feature_check/float.py
@@ -5,9 +5,9 @@ try:
except NameError:
print(0)
else:
- if float('1.0000001') == float('1.0'):
+ if float("1.0000001") == float("1.0"):
print(30)
- elif float('1e300') == float('inf'):
+ elif float("1e300") == float("inf"):
print(32)
else:
print(64)
diff --git a/tests/feature_check/reverse_ops.py b/tests/feature_check/reverse_ops.py
index 668748bc5..68eb91b44 100644
--- a/tests/feature_check/reverse_ops.py
+++ b/tests/feature_check/reverse_ops.py
@@ -1,8 +1,8 @@
class Foo:
-
def __radd__(self, other):
pass
+
try:
5 + Foo()
except TypeError: