Title: [997] trunk/tests: Some more IDE hints
- Revision
- 997
- Author
- cito
- Date
- 2019-04-25 12:56:42 -0400 (Thu, 25 Apr 2019)
Log Message
Some more IDE hints
Modified Paths
Diff
Modified: trunk/tests/test_classic_connection.py (996 => 997)
--- trunk/tests/test_classic_connection.py 2019-04-25 16:43:45 UTC (rev 996)
+++ trunk/tests/test_classic_connection.py 2019-04-25 16:56:42 UTC (rev 997)
@@ -40,12 +40,12 @@
except ImportError:
pass
-try:
+try: # noinspection PyUnresolvedReferences
long
except NameError: # Python >= 3.0
long = int
-try:
+try: # noinspection PyUnresolvedReferences
unicode
except NameError: # Python >= 3.0
unicode = str
@@ -221,7 +221,8 @@
scalariter scalarresult single singledict singlenamed singlescalar
'''.split()
query_members = [a for a in dir(query)
- if not a.startswith('__')]
+ if not a.startswith('__')
+ and a != 'next'] # this is only needed in Python 2
self.assertEqual(members, query_members)
def testMethodEndcopy(self):
Modified: trunk/tests/test_classic_dbwrapper.py (996 => 997)
--- trunk/tests/test_classic_dbwrapper.py 2019-04-25 16:43:45 UTC (rev 996)
+++ trunk/tests/test_classic_dbwrapper.py 2019-04-25 16:56:42 UTC (rev 997)
@@ -46,12 +46,12 @@
except ImportError:
pass
-try:
+try: # noinspection PyUnresolvedReferences
long
except NameError: # Python >= 3.0
long = int
-try:
+try: # noinspection PyUnresolvedReferences
unicode
except NameError: # Python >= 3.0
unicode = str
@@ -61,7 +61,7 @@
except ImportError: # Python 2.6 or 3.0
OrderedDict = dict
-if str is bytes:
+if str is bytes: # noinspection PyUnresolvedReferences
from StringIO import StringIO
else:
from io import StringIO
Modified: trunk/tests/test_classic_functions.py (996 => 997)
--- trunk/tests/test_classic_functions.py 2019-04-25 16:43:45 UTC (rev 996)
+++ trunk/tests/test_classic_functions.py 2019-04-25 16:56:42 UTC (rev 997)
@@ -22,12 +22,12 @@
from datetime import timedelta
-try:
+try: # noinspection PyUnresolvedReferences
long
except NameError: # Python >= 3.0
long = int
-try:
+try: # noinspection PyUnresolvedReferences
unicode
except NameError: # Python >= 3.0
unicode = str
Modified: trunk/tests/test_dbapi20_copy.py (996 => 997)
--- trunk/tests/test_dbapi20_copy.py 2019-04-25 16:43:45 UTC (rev 996)
+++ trunk/tests/test_dbapi20_copy.py 2019-04-25 16:56:42 UTC (rev 997)
@@ -37,7 +37,7 @@
except ImportError:
pass
-try:
+try: # noinspection PyUnresolvedReferences
unicode
except NameError: # Python >= 3.0
unicode = str
_______________________________________________
PyGreSQL mailing list
[email protected]
https://mail.vex.net/mailman/listinfo/pygresql