| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
| |
Skip named cursor tests
|
| |
|
|
| |
Close #1073.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
| |
Now its state is unmodified, so apart from special-casing creation
and initial population can work unmodified, and all the desired
properties just work (modifiability, picklability...)
Close #886.
|
| |
|
|
| |
Addresses #886, but there might be something else broken there.
|
| |
|
|
|
|
|
|
|
|
| |
Allows removing many duplicate imports and better follows PEP8
guidelines:
https://www.python.org/dev/peps/pep-0008/#imports
> Imports are always put at the top of the file, just after any module
> comments and docstrings, and before module globals and constants.
|
| |
|
|
|
| |
ag -l Copyright | xargs sed -i \
"s/\(.*copyright (C) [0-9]\+\)\(-[0-9]\+\)\?\(.*\)/\1-$(date +%Y)\3/I"
|
| |
|
|
|
|
|
|
|
| |
Previous one didn't refresh by last use. Use the stdlib version for py3
and one of our own for py2.
Max size set to 512, which should be fine for everyone (tweaking is
still possible by monkeypatching, as the tests do, but I don't want to
make an interface of it).
|
| |
|
|
| |
see #838
|
| | |
|
| |
|
|
| |
Close #177.
|
| |
|
|
| |
ISTM the refactoring in #648 broke something
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
They can be valid chars in Python 3. Or maybe not? In which case Python
will throw an exception, but that's fine.
Fix regression introduced fixing #211
|
| |
|
|
| |
Close #211.
|
| |
|
|
|
|
|
|
| |
For library end users, there is no need to install tests alongside the
package itself. This keeps the tests available for development without
adding extra packages to user's site-packages directory. Reduces the
size of the installed package. Avoids accidental execution of test code
by an installed package.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
The tests relied on Python2 relative import semantics. Python3 changed
import semantics to always search sys.path by default. To import using a
relative path it must have a leading dot.
Forward compatible with newer Pythons.
Works towards the goal of moving tests outside of the installed package.
For more information, see PEP-328:
https://www.python.org/dev/peps/pep-0328/
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| | |
There is no need to import testutils.unittest instead of simply
unittest. They are simple aliases. Use system unittest to be more
regular, consistent as well as idiomatic with the wider Python
community.
|
| |/
|
|
|
|
|
| |
Available since Python 2.6. Use of .next() is deprecated and not
supported in Python 3. Forward compatible with modern Python.
https://docs.python.org/2/library/functions.html#next
|
| |
|
|
|
|
| |
namedtuple is available on all Python versions supported by psycopg2. It
was first introduced in Python 2.6. Can remove all workarounds and
special documentation.
|
| | |
|
| |
|
|
|
| |
The class makes a connection always available, allows creating
new connection and closes everything on tear down.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
The correction is similar to the other one for the other subclasses.
Also added tests for rowcount and rownumber during different fetch styles.
Just in case.
|
| |
|
|
|
|
|
| |
Regression introduced to fix ticket #80. Don't use fetchmany to get the
chunks of values. I did it that way because I was ending up into infinite
recursion calling __iter__ from __iter__: the solution has been the
"while 1: yield next()" idiom.
|
| | |
|
| |
|
|
| |
fetchmany() with no arg is broken in cursor subclasses.
|
| |
|
|
| |
Closes ticket #80.
|
|
|
Both for consistency and for test discovery.
|