import sys
-import test.support
import unittest
from contextlib import closing
from functools import partial
from pathlib import Path
-from test.support import cpython_only, import_helper, os_helper
+from test.support import import_helper, os_helper
dbm_sqlite3 = import_helper.import_module("dbm.sqlite3")
# N.B. The test will fail on some platforms without sqlite3
import unittest
-from types import MethodType
+
def funcattrs(**kwds):
def decorate(func):
from test.test_email import TestEmailBase, parameterize
from email import headerregistry
from email.headerregistry import Address, Group
-from email.header import decode_header
from test.support import ALWAYS_EQ
import test.support
import time
import unittest
-import sys
-import os.path
-import zoneinfo
+
class DateTimeTests(unittest.TestCase):
import test.support
import unittest
import unittest.mock
-from importlib.resources.abc import Traversable
from pathlib import Path
import ensurepip
"""Tests for Lib/fractions.py."""
-import cmath
from decimal import Decimal
from test.support import requires_IEEE_754
import math
import copy
-import gc
import operator
import re
import sys
import textwrap
import threading
-import types
import unittest
import weakref
try:
_testcapi = None
from test import support
-from test.support import import_helper, threading_helper, Py_GIL_DISABLED
+from test.support import import_helper, threading_helper
from test.support.script_helper import assert_python_ok
-import sys
import unittest
from itertools import cycle
from threading import Thread
from unittest import TestCase
-from test.support import threading_helper, import_helper
+from test.support import threading_helper
import types
import decimal
import unittest
-import warnings
from test import support
from test.support.os_helper import temp_cwd
from test.support.script_helper import assert_python_failure, assert_python_ok