summaryrefslogtreecommitdiff
path: root/tests/misc/non_compliant.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/non_compliant.py')
-rw-r--r--tests/misc/non_compliant.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/misc/non_compliant.py b/tests/misc/non_compliant.py
index 79f1e70c8..09abac238 100644
--- a/tests/misc/non_compliant.py
+++ b/tests/misc/non_compliant.py
@@ -40,8 +40,26 @@ try:
except NotImplementedError:
print('NotImplementedError')
+# str(...) with keywords not implemented
+try:
+ str(b'abc', encoding='utf8')
+except NotImplementedError:
+ print('NotImplementedError')
+
# str.rsplit(None, n) not implemented
try:
'a a a'.rsplit(None, 1)
except NotImplementedError:
print('NotImplementedError')
+
+# bytes(...) with keywords not implemented
+try:
+ bytes('abc', encoding='utf8')
+except NotImplementedError:
+ print('NotImplementedError')
+
+# bytes subscr with step!=1 not implemented
+try:
+ b'123'[0:3:2]
+except NotImplementedError:
+ print('NotImplementedError')