__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
##############################################################################
#
# Copyright (c) 2022 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
#
##############################################################################
import struct
import unittest
import zope.interface # noqa: try to load a C module for side effects
class TestFloatingPoint(unittest.TestCase):
def test_no_fast_math_optimization(self):
# Building with -Ofast enables -ffast-math, which sets certain FPU
# flags that can cause breakage elsewhere. A library such as BTrees
# has no business changing global FPU flags for the entire process.
zero_bits = struct.unpack("!Q", struct.pack("!d", 0.0))[0]
next_up = zero_bits + 1
smallest_subnormal = struct.unpack("!d", struct.pack("!Q", next_up))[0]
self.assertNotEqual(smallest_subnormal, 0.0)
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| __pycache__ | Folder | 0755 |
|
|
| __init__.py | File | 3.87 KB | 0644 |
|
| advisory_testing.py | File | 897 B | 0644 |
|
| dummy.py | File | 911 B | 0644 |
|
| idummy.py | File | 889 B | 0644 |
|
| m1.py | File | 812 B | 0644 |
|
| odd.py | File | 2.94 KB | 0644 |
|
| test_adapter.py | File | 77.68 KB | 0644 |
|
| test_advice.py | File | 5.82 KB | 0644 |
|
| test_compile_flags.py | File | 1.26 KB | 0644 |
|
| test_declarations.py | File | 80.2 KB | 0644 |
|
| test_document.py | File | 16.5 KB | 0644 |
|
| test_element.py | File | 1.09 KB | 0644 |
|
| test_exceptions.py | File | 6.26 KB | 0644 |
|
| test_interface.py | File | 89.32 KB | 0644 |
|
| test_interfaces.py | File | 4.27 KB | 0644 |
|
| test_odd_declarations.py | File | 7.39 KB | 0644 |
|
| test_registry.py | File | 110.17 KB | 0644 |
|
| test_ro.py | File | 13.79 KB | 0644 |
|
| test_sorting.py | File | 1.89 KB | 0644 |
|
| test_verify.py | File | 18.74 KB | 0644 |
|