gen_integer() change

Using Win64 Python2.7, sys.maxsize returns a long and the `isinstance(maxsize, int)` test fails. I updated this to a tuple to consider the differences with Python3 (which doesn't really use `long()`) by adding an integer types tuple `(int, long,)` depending on the platform.
Agreed. Sometimes people use
`SYS_VERSION_HEX < 0x03000000`
instead. I'll take a look around and see if there's a cleaner way of doing
it.
 On Dec 18, 2014 9:26 AM, "Og Maciel" <notifications@github.com> wrote:

> In fauxfactory/__init__.py
> <https://github.com/omaciel/fauxfactory/pull/62#discussion-diff-22043994>:
>
> > @@ -342,10 +342,15 @@ def gen_integer(min_value=None, max_value=None):
> >      if max_value is None:
> >          max_value = _max_value
> >
> > +    if sys.version < '3':
>
> I am finally at my computer now and was thinking, how using:
>
> if sys.version_info.major < 3:
>
> I only now realized that sys.version returns a string and I feel that
> comparing a string is a bit weird...
>
> sys.version'2.7.6 (default, Sep  9 2014, 15:04:36) \n[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)]'
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/omaciel/fauxfactory/pull/62/files#r22043994>.
>