|
Meta tags:
description=Having these in a separate file from the one that s named after the
module in the usual way makes it very easy to miss them when looking
for tests for these two functions.
(In fact when working recently on is_normalized, I d been surprised to
see no tests for it here and concluded the function had evaded being
tested at all. I d gone as far as to write up some tests myself
before I spotted this other file.)
Mostly this just means moving all the one file s code into the other,
and moving code from the module toplevel to inside the test class to
keep it tidily separate from the rest of the file s code.
There s one substantive change, which reduces by a bit the amount of
code to be moved: we drop the x sys.maxunicode conditional and all
the RangeError logic behind it. Now if that condition ever occurs
it will cause an error at chr(x), and a test failure. That s the
right result because, since PEP 393 in Python 3.3, there is no longer
such a thing as an unsupported character .
htt????/bugs.python.org/issue38043;
Headings (most frequently used words):
uh, oh, for, sep, 2019, choose, reason, hiding, this, comment, aeros, navigation, bpo, 38043, move, unicodedata, normalize, tests, into, test_unicodedata, 15712, footer, diff, view, menu, repository, there, are, no, files, selected, viewing, filter, by, extension, gnprice,
Text of the page (most frequently used words):
self (57), this (47), the (31), file (31), #unicodedata (30), line (28), comment (27), for (24), test (20), def (19), asserttrue (19), #normalize (18), and (17), github (16), there (16), reason (16), all (15), nfc (15), was (15), reload (14), is_normalized (14), expand (13), that (12), while (12), unicode (12), nfkc (12), nfd (12), applied (11), loading (11), import (11), please (10), from (10), code (10), show (10), characters (10), learn (10), lib (10), nfkd (10), error (10), choose (10), hiding (10), copy (10), diff (9), hidden (9), more (9), tests (9), page (9), you (8), change (8), test_normalization (8), open (8), hide (8), quality (8), sep (8), 2019 (8), str (8), suggestion (7), cannot (7), suggestions (7), changes (7), down (7), compile (7), include (7), assertraises (7), data (7), something (7), return (7), support (7), test_unicodedata (7), sign (7), not (6), comments (6), resolved (6), outdated (6), number (6), bidirectional (6), what (6), view (6), went (6), wrong (6), split (6), into (6), hdr (6), testfile (6), can (5), security (5), review (5), about (5), assertequal (5), typeerror (5), part (5), reactions (5), sorry (5), low (5), duplicate (5), off (5), topic (5), abuse (5), spam (5), will (5), displayed (5), describe (5), others (5), problem (5), contributor (5), markdown (5), link (5), see (5), testdata (5), http (5), gnprice (5), files (5), commits (5), your (5), perform (4), check (4), pull (4), below (4), desktop (4), delete (4), edit (4), pyproj (4), additions (4), unittest (4), whitespace (4), aeros (4), thread (4), context (4), testdataurl (4), check_version (4), try (4), unidata_version (4), readline (4), bpo (4), 38043 (4), move (4), copilot (4), information (3), community (3), navigation (3), request (3), deleted (3), add (3), batch (3), commit (3), only (3), were (3), original (3), contains (3), text (3), may (3), interpreted (3), compiled (3), differently (3), than (3), appears (3), editor (3), reveals (3), pcbuild (3), continue (3), part1_data (3), much (3), doesn (3), seem (3), suggested (3), with (3), httpexception (3), www (3), variable (3), header (3), issue (3), test_ucn (3), retry (3), load (3), 117 (3), filter (3), 15712 (3), merged (3), python (3), account (3), another (3), tab (3), window (3), refresh (3), session (3), developers (3), changelog (3), customer (3), enterprise (3), grade (3), features (3), build (3), contact (2), status (2), privacy (2), terms (2), footer (2), has (2), lines (2), single (2), one (2), viewing (2), because (2), made (2), toggle (2), 1191 (2), deletion (2), valueerror (2), unknown (2), test_edge_cases (2), chr (2), range (2), sys (2), other (2), seems (2), bit (2), would (2), like (2), don (2), provide (2), any (2), unistr (2), run_normalization_tests (2), except (2), open_urlresource (2), hit (2), exception (2), early (2), pythontest (2), net (2), testdatafile (2), normalizationtest (2), txt (2), staticmethod (2), class (2), testcase (2), eaw (2), issues (2), test_normalize (2), combining (2), 171 (2), 172 (2), script_helper (2), client (2), 110 (2), deletions (2), even (2), named (2), wouldn (2), name (2), new (2), abbreviation (2), used (2), clear (2), selected (2), apply (2), unified (2), failed (2), jump (2), nbsp (2), extension (2), select (2), tree (2), insights (2), projects (2), actions (2), repository (2), cpython (2), signed (2), universe (2), training (2), integrations (2), stories (2), center (2), documentation (2), business (2), fixes (2), products (2), secret (2), action, time, share, personal, manage, cookies, docs, 2026, inc, right, now, back, later, queued, merge, multi, pending, reviews, been, marked, must, existing, order, create, valid, applying, supported, per, subset, closed, invalid, annotations, notes, test_opcodes, test_numeric_tower, test_ntpath, test_nntplib, test_nis, test_netrc, main, __name__, __main__, ud55c, uae00, bug, 834676, test_bug_834676, maxunicode, part1, record, trivial, nit, amount, section, excessive, recommend, condensing, purpose, additional, assertions, startswith, strip, none, fail, could, retrieve, oserror, directory, skiptest, permission, when, downloading, permissionerror, encoding, utf, similar, recommendation, particularly, useful, join, int, should, linebreak, len, 315, 306, 102, test_linebreak_7643, east_asian_width, test_east_asian_width, u11c3_str_a, u11c3_str_b, u11a7_str_a, u11a7_str_b, 208, 202, test_issue29456, 1054943, 10254, org, html, test_pr29, which, requires, external, rest, found, test_combining, unicodemethodstest, hashlib, url, namedsequences, fortunately, local, small, simple, isn, reader, look, does, var31, harder, read, maybe, easier, tempted, guess, meant, general, left, way, top, level, above, yep, pretty, sure, intended, mean, write, full, word, writing, author, short, here, recall, seeing, particular, before, entirely, but, thing, make, sense, unless, very, common, well, known, wasn, aware, worth, saving, extra, three, looks, total, times, within, these, changing, shouldn, explicit, implicit, sequences, test_named_sequences_full, test_named_sequences_sample, _testcapi, int_max, py_ssize_t_max, uint_max, oops, are, conversations, filters, viewed, types, fold, old, function, too, 8803950, f35cdac, hold, shift, click, changed, checks, conversation, master, benjaminp, already, clicking, agree, our, occasionally, send, related, emails, statement, service, free, its, maintainers, have, question, project, items, requests, message, dismiss, alert, switched, accounts, out, appearance, settings, search, pricing, event, talks, workshops, next, partners, company, forum, events, webinars, blog, resource, connect, resources, premium, advanced, ons, trust, why, evaluate, industries, government, manufacturing, financial, services, healthcare, industry, nonprofits, startups, team, enterprises, stage, businesses, source, latest, improvements, across, place, developer, articles, sponsors, trending, repos, explore, customize, certifications, scanning, leak, prevention, protection, vulnerability, detection, remediation, secure, cloud, development, environments, codespaces, analysis, enforcement, automation, ship, coding, agent, tasks, automated, work, hosting, collaboration, platform, menu, skip, content,
|