Commit 7420ace1 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

added bytes to types not recognised as pos. args

Added bytes & bytearray as iterable types that are not to be recognised
as positional arguments when interpreting test_generator profiles.
parent 34124cd5
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -30,6 +30,8 @@ from collections import Iterable
from functools import wraps
from six import string_types

NON_ARG_TYPES = tuple({str, bytes, bytearray, dict} | set(string_types))


class test_generator(object):
	"""
@@ -128,7 +130,7 @@ class test_generator(object):

	@staticmethod
	def _is_args(obj):
		return isinstance(obj, Iterable) and not isinstance(obj, string_types+(dict,))
		return isinstance(obj, Iterable) and not isinstance(obj, NON_ARG_TYPES)

	@staticmethod
	def _is_kwds(obj):