• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zopefoundation / zope.hookable / 16098872535

17 Feb 2025 07:53AM UTC coverage: 100.0%. Remained the same
16098872535

push

github

web-flow
Update supported Python versions. (#43)

* Drop support for Python 3.8.
* Add preliminary support for Python 3.14.

51 of 51 branches covered (100.0%)

Branch coverage included in aggregate %.

173 of 173 relevant lines covered (100.0%)

6.99 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/src/zope/hookable/tests/test_compile_flags.py
1
##############################################################################
2
#
3
# Copyright (c) 2022 Zope Foundation and Contributors.
4
# All Rights Reserved.
5
#
6
# This software is subject to the provisions of the Zope Public License,
7
# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
8
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
9
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
10
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
11
# FOR A PARTICULAR PURPOSE
12
#
13
##############################################################################
14
import struct
7✔
15
import unittest
7✔
16

17
import zope.hookable  # noqa: try to load a C module for side effects
7✔
18

19

20
class TestFloatingPoint(unittest.TestCase):
7✔
21

22
    def test_no_fast_math_optimization(self):
7✔
23
        # Building with -Ofast enables -ffast-math, which sets certain FPU
24
        # flags that can cause breakage elsewhere.  A library such as BTrees
25
        # has no business changing global FPU flags for the entire process.
26
        zero_bits = struct.unpack("!Q", struct.pack("!d", 0.0))[0]
7✔
27
        next_up = zero_bits + 1
7✔
28
        smallest_subnormal = struct.unpack("!d", struct.pack("!Q", next_up))[0]
7✔
29
        self.assertNotEqual(smallest_subnormal, 0.0)
7✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc