Skip to content

Commit

Permalink
ignore noncoverage of doctest setups by unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Changaco committed Oct 14, 2019
1 parent 07bfc1f commit 5b86432
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion postgres/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 693,7 @@ def _refetch_type_info(self, curs):
self.__dict__.update(new_self.__dict__)


if __name__ == '__main__':
if __name__ == '__main__': # pragma: no cover
db = Postgres()
db.run("DROP SCHEMA IF EXISTS public CASCADE")
db.run("CREATE SCHEMA public")
Expand Down
2 changes: 1 addition & 1 deletion postgres/cursors.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 525,7 @@ def isexception(obj):
return False


if __name__ == '__main__':
if __name__ == '__main__': # pragma: no cover
from postgres import Postgres
db = Postgres()
db.run("DROP SCHEMA IF EXISTS public CASCADE")
Expand Down
2 changes: 1 addition & 1 deletion postgres/orm.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 248,7 @@ def set_attributes(self, **kw):
super(Model, self).__setattr__(name, value)


if __name__ == '__main__':
if __name__ == '__main__': # pragma: no cover

from postgres import Postgres
db = Postgres()
Expand Down

0 comments on commit 5b86432

Please sign in to comment.