Skip to content

Commit 13f757a

Browse files
authored
Merge branch 'master' into fix-windows-support
2 parents 4d3ef9c + c79c854 commit 13f757a

File tree

4 files changed

+5
-19
lines changed

4 files changed

+5
-19
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ If you want to insert fixtures to the cached database, use ``initdb_handler`` op
123123

124124
Requirements
125125
============
126-
* Python 2.6, 2.7, 3.2, 3.3, 3.4, 3.5
126+
* Python 2.7, 3.4, 3.5, 3.6
127127
* pg8000 1.10
128128

129129
License

src/testing/postgresql.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
__all__ = ['Postgresql', 'skipIfNotFound']
2929

3030
SEARCH_PATHS = (['/usr/local/pgsql', '/usr/local'] +
31+
glob('/usr/pgsql-*') + # for CentOS/RHEL
3132
glob('/usr/lib/postgresql/*') + # for Debian/Ubuntu
3233
glob('/opt/local/lib/postgresql*')) # for MacPorts
3334

tests/test_postgresql.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# -*- coding: utf-8 -*-
22

33
import os
4-
import sys
54
import signal
65
import tempfile
6+
import unittest
77
import testing.postgresql
88
from time import sleep
99
from shutil import rmtree
@@ -12,11 +12,6 @@
1212
import sqlalchemy
1313
from contextlib import closing
1414

15-
if sys.version_info < (2, 7):
16-
import unittest2 as unittest
17-
else:
18-
import unittest
19-
2015

2116
class TestPostgresql(unittest.TestCase):
2217
def test_basic(self):

tox.ini

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,18 @@
11
[tox]
2-
envlist=py26,py27,py32,py33,py34,py35
2+
envlist=py27,py34,py35,py36
33

44
[base]
55
deps=
66
nose
7+
flake8
78
psycopg2
89
SQLAlchemy
9-
10-
[testenv]
11-
deps=
12-
{[base]deps}
13-
flake8
1410
passenv=
1511
TRAVIS*
1612
commands=
1713
nosetests
1814
flake8 --exclude=.tox/
1915

20-
[testenv:py26]
21-
deps=
22-
{[base]deps}
23-
unittest2
24-
flake8==2.6.0
25-
2616
[testenv:coverage]
2717
deps=
2818
{[testenv]deps}

0 commit comments

Comments
 (0)