Commit 41a6aae5 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

fixed args+kwds test in generator.test_generator

_is_args_kwds() was checking for two sets of positional arguments,
changed to the correct behaviour of one positional, one keywords.
parent 72e24992
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -137,7 +137,7 @@ class test_generator(object):
	@classmethod
	def _is_args_kwds(cls, obj):
		try:
			return len(obj) == 2 and cls._is_args(obj[0]) and cls._is_args(obj[1])
			return len(obj) == 2 and cls._is_args(obj[0]) and cls._is_kwds(obj[1])
		except (TypeError, KeyError):
			return False