after_merge
stringlengths
28
79.6k
before_merge
stringlengths
20
79.6k
url
stringlengths
38
71
full_traceback
stringlengths
43
922k
traceback_type
stringclasses
555 values
def shrink_offset_pairs(self): """Lower any two blocks offset from each other the same ammount. Before this shrink pass, two blocks explicitly offset from each other would not get minimized properly: >>> b = st.integers(0, 255) >>> find(st.tuples(b, b), lambda x: x[0] == x[1] + 1) (149,148) ...
def shrink_offset_pairs(self): """Lower any two blocks offset from each other the same ammount. Before this shrink pass, two blocks explicitly offset from each other would not get minimized properly: >>> b = st.integers(0, 255) >>> find(st.tuples(b, b), lambda x: x[0] == x[1] + 1) (149,148) ...
https://github.com/HypothesisWorks/hypothesis/issues/1299
File "/home/david/hypothesis/hypothesis-python/src/hypothesis/internal/conjecture/engine.py", line 1325, in greedy_shrink self.shrink_offset_pairs() File "/home/david/hypothesis/hypothesis-python/src/hypothesis/internal/conjecture/engine.py", line 1581, in shrink_offset_pairs block_val = int_from_block(j) File "/home/d...
IndexError
def reoffset_pair(pair, o): n = len(self.blocks) # Number of blocks may have changed, need to validate valid_pair = [ p for p in pair if p < n and int_from_block(p) > 0 and self.is_payload_block(p) ] if len(valid_pair) < 2: return m = min([int_from_block(p) for p in valid_pair]...
def reoffset_pair(pair, o): n = len(self.blocks) # Number of blocks may have changed, need to validate valid_pair = [p for p in pair if p < n and int_from_block(p) > 0] if len(valid_pair) < 2: return m = min([int_from_block(p) for p in valid_pair]) new_blocks = [self.shrink_target.buf...
https://github.com/HypothesisWorks/hypothesis/issues/1299
File "/home/david/hypothesis/hypothesis-python/src/hypothesis/internal/conjecture/engine.py", line 1325, in greedy_shrink self.shrink_offset_pairs() File "/home/david/hypothesis/hypothesis-python/src/hypothesis/internal/conjecture/engine.py", line 1581, in shrink_offset_pairs block_val = int_from_block(j) File "/home/d...
IndexError
def escape_local_minimum(self): """Attempt to restart the shrink process from a larger initial value in a way that allows us to escape a local minimum that the main greedy shrink process will get stuck in. The idea is that when we've completed the shrink process, we try starting it again from somet...
def escape_local_minimum(self): """Attempt to restart the shrink process from a larger initial value in a way that allows us to escape a local minimum that the main greedy shrink process will get stuck in. The idea is that when we've completed the shrink process, we try starting it again from somet...
https://github.com/HypothesisWorks/hypothesis/issues/1299
File "/home/david/hypothesis/hypothesis-python/src/hypothesis/internal/conjecture/engine.py", line 1325, in greedy_shrink self.shrink_offset_pairs() File "/home/david/hypothesis/hypothesis-python/src/hypothesis/internal/conjecture/engine.py", line 1581, in shrink_offset_pairs block_val = int_from_block(j) File "/home/d...
IndexError
def from_typing_type(thing): # We start with special-case support for Union and Tuple - the latter # isn't actually a generic type. Support for Callable may be added to # this section later. # We then explicitly error on non-Generic types, which don't carry enough # information to sensibly resolve ...
def from_typing_type(thing): # We start with special-case support for Union and Tuple - the latter # isn't actually a generic type. Support for Callable may be added to # this section later. # We then explicitly error on non-Generic types, which don't carry enough # information to sensibly resolve ...
https://github.com/HypothesisWorks/hypothesis/issues/1583
from typing import Tuple from hypothesis.strategies import from_type from_type(Tuple[()]).example() Traceback (most recent call last): File "<venv path>\lib\site-packages\hypothesis\searchstrategy\strategies.py", line 131, in recur result = mapping[strat] KeyError: tuples(deferred(lambda: func(*args, **kwargs))) Durin...
KeyError
def _get_strategy_for_field(f): if f.choices: choices = [] for value, name_or_optgroup in f.choices: if isinstance(name_or_optgroup, (list, tuple)): choices.extend(key for key, _ in name_or_optgroup) else: choices.append(value) if isins...
def _get_strategy_for_field(f): if f.choices: choices = [] for value, name_or_optgroup in f.choices: if isinstance(name_or_optgroup, (list, tuple)): choices.extend(key for key, _ in name_or_optgroup) else: choices.append(value) if isins...
https://github.com/HypothesisWorks/hypothesis/issues/1045
Error Traceback (most recent call last): File "/vagrant/savings_champion/products/tests/models.py", line 33, in test_check_bonus user=models(User), File "/home/ubuntu/.local/lib/python3.5/site-packages/hypothesis/core.py", line 1001, in wrapped_test state.run() File "/home/ubuntu/.local/lib/python3.5/site-packages/hypo...
ValueError
def text(alphabet=None, min_size=None, average_size=None, max_size=None): """Generates values of a unicode text type (unicode on python 2, str on python 3) with values drawn from alphabet, which should be an iterable of length one strings or a strategy generating such. If it is None it will default to g...
def text(alphabet=None, min_size=None, average_size=None, max_size=None): """Generates values of a unicode text type (unicode on python 2, str on python 3) with values drawn from alphabet, which should be an iterable of length one strings or a strategy generating such. If it is None it will default to g...
https://github.com/HypothesisWorks/hypothesis/issues/1045
Error Traceback (most recent call last): File "/vagrant/savings_champion/products/tests/models.py", line 33, in test_check_bonus user=models(User), File "/home/ubuntu/.local/lib/python3.5/site-packages/hypothesis/core.py", line 1001, in wrapped_test state.run() File "/home/ubuntu/.local/lib/python3.5/site-packages/hypo...
ValueError
def __init__(self, test_runner, search_strategy, test, settings, random): self.test_runner = test_runner self.search_strategy = search_strategy self.settings = settings self.at_least_one_success = False self.last_exception = None self.falsifying_examples = () self.__was_flaky = False sel...
def __init__(self, test_runner, search_strategy, test, settings, random): self.test_runner = test_runner self.search_strategy = search_strategy self.settings = settings self.at_least_one_success = False self.last_exception = None self.repr_for_last_exception = None self.falsifying_examples =...
https://github.com/HypothesisWorks/hypothesis/issues/911
Unreliable test timings! On an initial run, this test took 161.08ms, which exceeded the deadline of 125.00ms, but on a subsequent run it took 78.93 ms, which did not. If you expect this sort of variability in your test timings, consider turning deadlines off for this test by setting deadline=None. Falsifying example: t...
hypothesis.errors.Flaky
def run(data): with self.settings: with BuildContext(data, is_final=is_final): import random as rnd_module rnd_module.seed(0) args, kwargs = data.draw(self.search_strategy) if expected_failure is not None: text_repr[0] = arg_string(test, args,...
def run(self): # Tell pytest to omit the body of this function from tracebacks __tracebackhide__ = True database_key = str_to_bytes(fully_qualified_name(self.test)) self.start_time = time.time() global in_given runner = ConjectureRunner( self.evaluate_test_data, settings=self.set...
https://github.com/HypothesisWorks/hypothesis/issues/911
Unreliable test timings! On an initial run, this test took 161.08ms, which exceeded the deadline of 125.00ms, but on a subsequent run it took 78.93 ms, which did not. If you expect this sort of variability in your test timings, consider turning deadlines off for this test by setting deadline=None. Falsifying example: t...
hypothesis.errors.Flaky
def from_type(thing): """Looks up the appropriate search strategy for the given type. ``from_type`` is used internally to fill in missing arguments to :func:`~hypothesis.strategies.builds` and can be used interactively to explore what strategies are available or to debug type resolution. You can u...
def from_type(thing): """Looks up the appropriate search strategy for the given type. ``from_type`` is used internally to fill in missing arguments to :func:`~hypothesis.strategies.builds` and can be used interactively to explore what strategies are available or to debug type resolution. You can u...
https://github.com/HypothesisWorks/hypothesis/issues/901
In [14]: st.from_type(T).example() --------------------------------------------------------------------------- KeyError Traceback (most recent call last) /Users/daenyth/.pyenv/versions/3.6.1/envs/obs-venv/lib/python3.6/site-packages/hypothesis/strategies.py in cached_strategy(*args, **k...
KeyError
def fractions(min_value=None, max_value=None, max_denominator=None): """Returns a strategy which generates Fractions. If min_value is not None then all generated values are no less than min_value. If max_value is not None then all generated values are no greater than max_value. min_value and max_valu...
def fractions(min_value=None, max_value=None, max_denominator=None): """Returns a strategy which generates Fractions. If min_value is not None then all generated values are no less than min_value. If max_value is not None then all generated values are no greater than max_value. If max_denomin...
https://github.com/HypothesisWorks/hypothesis/issues/739
tmpproj.test_tight_decimal_range ... FAIL ====================================================================== FAIL: tmpproj.test_tight_decimal_range ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/nose/case.py", l...
AssertionError
def dm_func(denom): """Take denom, construct numerator strategy, and build fraction.""" # Four cases of algebra to get integer bounds and scale factor. min_num, max_num = None, None if max_value is None and min_value is None: pass elif min_value is None: max_num = denom * max_value.n...
def dm_func(denom): max_num = max_value * denom if max_value is not None else None min_num = min_value * denom if min_value is not None else None return builds(Fraction, integers(min_value=min_num, max_value=max_num), just(denom))
https://github.com/HypothesisWorks/hypothesis/issues/739
tmpproj.test_tight_decimal_range ... FAIL ====================================================================== FAIL: tmpproj.test_tight_decimal_range ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/nose/case.py", l...
AssertionError
def set_cookie( cls, message, key, value="", max_age=None, expires=None, path="/", domain=None, secure=False, httponly=False, ): """ Sets a cookie in the passed HTTP response message. ``expires`` can be: - a string in the correct format, - a naive ``datetime....
def set_cookie( cls, message, key, value="", max_age=None, expires=None, path="/", domain=None, secure=False, httponly=False, ): """ Sets a cookie in the passed HTTP response message. ``expires`` can be: - a string in the correct format, - a naive ``datetime....
https://github.com/django/channels/issues/1226
Traceback (most recent call last): File "manage.py", line 16, in <module> execute_from_command_line(sys.argv) File "d:\professional\firstinspires\fll-scoring\fllfms\venv\src\django\django\core\management\__init__.py", line 381, in execute_from_command_line utility.execute() File "d:\professional\firstinspires\fll-scori...
ImportError
async def send(self, message): """ Overridden send that also does session saves/cookies. """ # Only save session if we're the outermost session middleware if self.activated: modified = self.scope["session"].modified empty = self.scope["session"].is_empty() # If this is a mess...
async def send(self, message): """ Overridden send that also does session saves/cookies. """ # Only save session if we're the outermost session middleware if self.activated: modified = self.scope["session"].modified empty = self.scope["session"].is_empty() # If this is a mess...
https://github.com/django/channels/issues/1226
Traceback (most recent call last): File "manage.py", line 16, in <module> execute_from_command_line(sys.argv) File "d:\professional\firstinspires\fll-scoring\fllfms\venv\src\django\django\core\management\__init__.py", line 381, in execute_from_command_line utility.execute() File "d:\professional\firstinspires\fll-scori...
ImportError
def touch_member(self, data, ttl=None, permanent=False): cluster = self.cluster member = cluster and cluster.get_member(self._name, fallback_to_leader=False) create_member = not permanent and self.refresh_session() if member and (create_member or member.session != self._session): self._client.k...
def touch_member(self, data, ttl=None, permanent=False): cluster = self.cluster member = cluster and cluster.get_member(self._name, fallback_to_leader=False) create_member = not permanent and self.refresh_session() if member and (create_member or member.session != self._session): try: ...
https://github.com/zalando/patroni/issues/853
2018-11-06 23:06:17,073 INFO: Lock owner: db1; I am db1reserve 2018-11-06 23:06:17,074 INFO: does not have lock 2018-11-06 23:06:17,095 INFO: no action. i am a secondary and i am following a leader 2018-11-06 23:06:27,497 ERROR: watch Traceback (most recent call last): File "/usr/lib/python3.4/site-packages/urllib3/co...
urllib3.exceptions.ReadTimeoutError
def apply_config_changes(before_editing, data, kvpairs): """Applies config changes specified as a list of key-value pairs. Keys are interpreted as dotted paths into the configuration data structure. Except for paths beginning with `postgresql.parameters` where rest of the path is used directly to allow for...
def apply_config_changes(before_editing, data, kvpairs): """Applies config changes specified as a list of key-value pairs. Keys are interpreted as dotted paths into the configuration data structure. Except for paths beginning with `postgresql.parameters` where rest of the path is used directly to allow for...
https://github.com/zalando/patroni/issues/491
[root@postgres-5-2 ~]# patronictl -c /etc/patroni.yaml edit-config postgres-5 --- +++ @@ -11,4 +11,4 @@ use_pg_rewind: true use_slots: true retry_timeout: 10 -ttl: 30 +ttl: 31 Apply these changes? [y/N]: y 2017-07-28 23:27:53,965 - ERROR - Unhandled exception in connection loop Traceback (most recent call last): File ...
kazoo.exceptions.ConnectionClosedError
def set_path_value(config, path, value, prefix=()): # Postgresql GUCs can't be nested, but can contain dots so we re-flatten the structure for this case if prefix == ("postgresql", "parameters"): path = [".".join(path)] key = path[0] if len(path) == 1: if value is None: conf...
def set_path_value(config, path, value, prefix=()): # Postgresql GUCs can't be nested, but can contain dots so we re-flatten the structure for this case if prefix == ("postgresql", "parameters"): path = [".".join(path)] if len(path) == 1: if value is None: config.pop(path[0], No...
https://github.com/zalando/patroni/issues/491
[root@postgres-5-2 ~]# patronictl -c /etc/patroni.yaml edit-config postgres-5 --- +++ @@ -11,4 +11,4 @@ use_pg_rewind: true use_slots: true retry_timeout: 10 -ttl: 30 +ttl: 31 Apply these changes? [y/N]: y 2017-07-28 23:27:53,965 - ERROR - Unhandled exception in connection loop Traceback (most recent call last): File ...
kazoo.exceptions.ConnectionClosedError
def edit_config( obj, cluster_name, force, quiet, kvpairs, pgkvpairs, apply_filename, replace_filename, ): dcs = get_dcs(obj, cluster_name) cluster = dcs.get_cluster() before_editing = format_config_for_editing(cluster.config.data) after_editing = None # Serves as a fl...
def edit_config( obj, cluster_name, force, quiet, kvpairs, pgkvpairs, apply_filename, replace_filename, ): dcs = get_dcs(obj, cluster_name) cluster = dcs.get_cluster() before_editing = format_config_for_editing(cluster.config.data) after_editing = None # Serves as a fl...
https://github.com/zalando/patroni/issues/491
[root@postgres-5-2 ~]# patronictl -c /etc/patroni.yaml edit-config postgres-5 --- +++ @@ -11,4 +11,4 @@ use_pg_rewind: true use_slots: true retry_timeout: 10 -ttl: 30 +ttl: 31 Apply these changes? [y/N]: y 2017-07-28 23:27:53,965 - ERROR - Unhandled exception in connection loop Traceback (most recent call last): File ...
kazoo.exceptions.ConnectionClosedError
def is_failover_possible(self, cluster, leader, candidate): if leader and (not cluster.leader or cluster.leader.name != leader): return "leader name does not match" if candidate: members = [m for m in cluster.members if m.name == candidate] if not members: return "candidate d...
def is_failover_possible(self, cluster, leader, candidate): if leader and (not cluster.leader or cluster.leader.name != leader): return "leader name does not match" if candidate: members = [m for m in cluster.members if m.name == candidate] if not members: return "candidate d...
https://github.com/zalando/patroni/issues/488
Jul 28 12:35:31 postgres-5-2 patroni[1269]: 2017-07-28 12:35:31,258 INFO: received failover request with leader=postgres-5-2 candidate=postgres-5-3 scheduled_at=None Jul 28 12:35:31 postgres-5-2 patroni[1269]: 2017-07-28 12:35:31,276 INFO: Got response from postgres-5-3 http://postgres-5-3:8008/patroni: b'{"role": "rep...
ValueError