Skip to content

Commit

Permalink
remove some debugging logic and redundant imports
Browse files Browse the repository at this point in the history
  • Loading branch information
DRMacIver committed Mar 18, 2015
1 parent 1ae854f commit f1d6752
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
14 changes: 5 additions & 9 deletions src/hypothesis/internal/hashitanyway.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,11 @@ def __init__(self, wrapped):
self.h = hash_everything(wrapped)

def __eq__(self, other):
if not isinstance(other, HashItAnyway):
return False
if self.h != other.h:
return False
if actually_equal(self.wrapped, other.wrapped):
return True
else:
print(self.wrapped, other.wrapped)
return False
return (
isinstance(other, HashItAnyway) and
self.h == other.h and
actually_equal(self, other)
)

def __ne__(self, other):
return not self.__eq__(other)
Expand Down
7 changes: 0 additions & 7 deletions tests/test_hashitanyway.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,9 @@
from __future__ import division, print_function, absolute_import, \
unicode_literals

from copy import deepcopy
from random import Random
from collections import namedtuple

from hypothesis import given
from hypothesis.types import RandomWithSeed
from hypothesis.settings import Settings
from tests.common.mutate import mutate_slightly, mutate_maliciously
from tests.common.descriptors import Descriptor
from hypothesis.internal.verifier import Verifier
from hypothesis.internal.hashitanyway import HashItAnyway


Expand Down

0 comments on commit f1d6752

Please sign in to comment.