Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
DRMacIver committed Mar 18, 2015
1 parent e569c75 commit c1a8078
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/hypothesis/database/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@

import sqlite3
from abc import abstractmethod
from contextlib import contextmanager

from hypothesis.internal.compat import text_type
from contextlib import contextmanager


class Backend(object):
Expand Down
12 changes: 12 additions & 0 deletions src/hypothesis/utils/idkey.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# coding=utf-8

# Copyright (C) 2013-2015 David R. MacIver (david@drmaciver.com)

# This file is part of Hypothesis (https://github.com/DRMacIver/hypothesis)

# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
# obtain one at http://mozilla.org/MPL/2.0/.

# END HEADER

from __future__ import division, print_function, absolute_import, \
unicode_literals

Expand Down
12 changes: 12 additions & 0 deletions src/hypothesis/utils/show.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# coding=utf-8

# Copyright (C) 2013-2015 David R. MacIver (david@drmaciver.com)

# This file is part of Hypothesis (https://github.com/DRMacIver/hypothesis)

# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
# obtain one at http://mozilla.org/MPL/2.0/.

# END HEADER

from __future__ import division, print_function, absolute_import, \
unicode_literals

Expand Down
6 changes: 3 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
from __future__ import division, print_function, absolute_import, \
unicode_literals

import gc
import warnings
from tempfile import mkdtemp
import pytest

import pytest
from hypothesis import Settings
from hypothesis.settings import set_hypothesis_home_dir
import gc

warnings.filterwarnings('error', category=UnicodeWarning)

Expand All @@ -36,6 +36,6 @@
pass


@pytest.fixture(scope="function", autouse=True)
@pytest.fixture(scope='function', autouse=True)
def some_fixture():
gc.collect()
16 changes: 16 additions & 0 deletions tests/test_idkey.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
# coding=utf-8

# Copyright (C) 2013-2015 David R. MacIver (david@drmaciver.com)

# This file is part of Hypothesis (https://github.com/DRMacIver/hypothesis)

# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
# obtain one at http://mozilla.org/MPL/2.0/.

# END HEADER

from __future__ import division, print_function, absolute_import, \
unicode_literals

from hypothesis.utils.idkey import IdKey


class Friendly(object):

def __eq__(self, other):
return True

Expand Down

0 comments on commit c1a8078

Please sign in to comment.