mrg from master
This commit is contained in:
16
.coveragerc
Normal file
16
.coveragerc
Normal file
@@ -0,0 +1,16 @@
|
||||
[run]
|
||||
branch = True
|
||||
source =
|
||||
pymysql
|
||||
|
||||
|
||||
[report]
|
||||
exclude_lines =
|
||||
pragma: no cover
|
||||
except ImportError:
|
||||
if DEBUG:
|
||||
def __repr__
|
||||
def __str__
|
||||
raise NotImplementedError
|
||||
def __getattr__
|
||||
raise ValueError
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,6 +1,7 @@
|
||||
*.pyc
|
||||
*.pyo
|
||||
__pycache__
|
||||
.coverage
|
||||
/dist
|
||||
/PyMySQL.egg-info
|
||||
/.tox
|
||||
|
||||
@@ -55,7 +55,7 @@ matrix:
|
||||
# really only need libaio1 for DB builds however libaio-dev is whitelisted for container builds and liaio1 isn't
|
||||
|
||||
install:
|
||||
- pip install -U tox
|
||||
- pip install -U tox coveralls
|
||||
|
||||
before_script:
|
||||
- ./.travis.initialize.db.sh;
|
||||
@@ -65,9 +65,13 @@ before_script:
|
||||
- mysql -u root -e "create user travis_pymysql2@localhost identified by 'some password'; grant all on test_pymysql2.* to travis_pymysql2@localhost;"
|
||||
- mysql -e 'select VERSION();'
|
||||
- rm -f ~/.my.cnf # set in .travis.initialize.db.sh for the above commands - we should be using database.json however
|
||||
- export COVERALLS_PARALLEL=true
|
||||
|
||||
script:
|
||||
- tox -e $TOX_ENV
|
||||
|
||||
after_success:
|
||||
- coveralls
|
||||
|
||||
after_failure:
|
||||
- cat /tmp/mysql.err
|
||||
|
||||
@@ -5,6 +5,8 @@ PyMySQL
|
||||
.. image:: https://travis-ci.org/PyMySQL/PyMySQL.svg?branch=master
|
||||
:target: https://travis-ci.org/PyMySQL/PyMySQL
|
||||
|
||||
.. image:: https://coveralls.io/repos/PyMySQL/PyMySQL/badge.svg?branch=coveralls&service=github :target: https://coveralls.io/github/PyMySQL/PyMySQL?branch=coveralls
|
||||
|
||||
.. contents::
|
||||
|
||||
This package contains a pure-Python MySQL client library. The goal of PyMySQL
|
||||
|
||||
@@ -107,7 +107,7 @@ DEFAULT_CHARSET = 'latin1'
|
||||
MAX_PACKET_LEN = 2**24-1
|
||||
|
||||
|
||||
def dump_packet(data):
|
||||
def dump_packet(data): # pragma: no cover
|
||||
def is_ascii(data):
|
||||
if 65 <= byte2int(data) <= 122:
|
||||
if isinstance(data, int):
|
||||
|
||||
Reference in New Issue
Block a user