Displaying 6 results from an estimated 6 matches for "test_passes".
Did you mean:
test_pass
2014 Aug 08
2
[PATCH 1/2] Add type checking, support integers as value
Before this patch, Python would segfault once you pass a non-string key
or value to node_set_value. It was also not possible to set bytes on
Python 3 as Unicode was assumed (Python 2 was not affected by this).
This patch fixes recognition of bytes for Python 3, but in addition it
recognizes ints (includes 'long' in Python 2) for DWORD (LE + BE) and
QWORDs. For this purpose, a new field
2018 Jul 04
2
Benchmarks with imaptest
Hey guys,
Has anybody ever used imaptest to benchmark *ONLY* reads? I'm trying to run
a battery of tests in my new cluster and apparently no combination of
parameters works, because fetch instruction doesn't run. Below is the
command I'm using and its partial output
imaptest/src/imaptest host=$SERVER_IP port=143 user=teste%d at example%d.com
pass=$TEST_PASS users=10 domains=10
2014 Aug 04
6
[hivex] Segfault for an integer value to node_set_value
Hi,
When an integer argument is passed as value, node_set_value
segfaults. Reproducer is at the end of this message
The backtrace points at hivex-py.c, function get_value. While obj
is non-NULL, `bytes = PyUnicode_AsUTF8String (obj);` returns NULL.
Kind regards,
Peter
https://lekensteyn.nl
#!/usr/bin/env python3
import hivex, sys
h = hivex.Hivex(sys.argv[1])
print(h)
val = {
2018 Jul 06
0
Benchmarks with imaptest
On 4 Jul 2018, at 20.10, Jo?o Paulo Sacchetto Ribeiro Bastos <joaopaulosr95 at gmail.com> wrote:
>
> Hey guys,
>
> Has anybody ever used imaptest to benchmark *ONLY* reads? I'm trying to run a battery of tests in my new cluster and apparently no combination of parameters works, because fetch instruction doesn't run. Below is the command I'm using and its partial
2014 Aug 16
7
[hivex] [PATCH 0/6] Python fixes for node_set_value
Hi,
This patch series is based on a prior patch[1], splitting off changes as
requested and incorporating feedback from Richard Jones. It introduces type
validation to avoid segmentation faults (instead, it reports an exception) and
fixes handling of the bytes type in Python 3.
Major changes since that series:
- Drop newly introduced support for integer types for DWORD/QWORDS
- Reject Unicode
2006 Aug 15
0
Mocha - dynamic method calling
...led exactly as specified before the end of a test. If you
just want to stub out the method to give a known return value, use the
"stubs" method...
def test_fails_because_message_was_not_called
object = mock()
object.expects(:message).with(''hello'')
end
def test_passes_because_message_is_called
object = mock()
object.expects(:message).with(''hello'')
object.message(''hello'')
end
def test_passes_even_though_message_is_not_called
object = mock()
object.stubs(:message)
end
I realise that the stack trace i...