diff options
author | Simon Feltman <sfeltman@src.gnome.org> | 2014-01-14 10:15:53 -0800 |
---|---|---|
committer | Simon Feltman <sfeltman@src.gnome.org> | 2014-01-14 10:15:53 -0800 |
commit | a329f559002f2be0898309c9d81cdf2c34aef158 (patch) | |
tree | 3543ec7b39ecdbfb071c0a32284aad4b55d9bad5 | |
parent | a50a8386aae54dace7e46569415fdef85758fb9c (diff) | |
download | pygobject-a329f559002f2be0898309c9d81cdf2c34aef158.tar.gz |
tests: Fix test_torture_profile to return a number from its callback
Return a number from rather than None from the callback passed to
regress_test_torture_signature_2. This fixes a TypeError being raised in
callback return argument marshaling which was ignored by the test suite.
-rw-r--r-- | tests/test_everything.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_everything.py b/tests/test_everything.py index 5e58fbcb..0cd18045 100644 --- a/tests/test_everything.py +++ b/tests/test_everything.py @@ -1186,7 +1186,7 @@ class TestTortureProfile(unittest.TestCase): sys.stdout.write("\ttorture test 4 (10000 iterations): ") def callback(userdata): - pass + return 0 userdata = [1, 2, 3, 4] start_time = time.clock() |