diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2010-07-28 16:39:41 (GMT) |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2010-07-28 16:39:41 (GMT) |
commit | 02ea12b29196ae002e26061eb0afb96db0cf889b (patch) | |
tree | 6ada8bb7e3777cb573814322d1eab627fd1899a2 /Lib/ctypes | |
parent | 3f8ab965f722b3bda679c9271fb8907e2bbcdc64 (diff) | |
download | cpython-02ea12b29196ae002e26061eb0afb96db0cf889b.zip cpython-02ea12b29196ae002e26061eb0afb96db0cf889b.tar.gz cpython-02ea12b29196ae002e26061eb0afb96db0cf889b.tar.bz2 |
Syntax cleanup.
Diffstat (limited to 'Lib/ctypes')
-rw-r--r-- | Lib/ctypes/test/test_callbacks.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/ctypes/test/test_callbacks.py b/Lib/ctypes/test/test_callbacks.py index ea51c33..36fc539 100644 --- a/Lib/ctypes/test/test_callbacks.py +++ b/Lib/ctypes/test/test_callbacks.py @@ -164,7 +164,7 @@ class SampleCallbacksTestCase(unittest.TestCase): result = integrate(0.0, 1.0, CALLBACK(func), 10) diff = abs(result - 1./3.) - self.assertTrue(diff < 0.01, "%s not less than 0.01" % diff) + self.assertLess(diff, 0.01, "%s not less than 0.01" % diff) def test_issue_8959_a(self): from ctypes.util import find_library |