diff options
author | Georg Brandl <georg@python.org> | 2022-10-27 07:18:16 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2022-10-27 12:15:22 +0200 |
commit | 629c448bdcbd7ca9f5d530c0ef10fa3bcd7ccbff (patch) | |
tree | 0d16b78a78b188e1f3ef28746b87ada37bdd804e /tests | |
parent | cffc5df62c258ca39fc7474f7197f2df33ab014f (diff) | |
download | pygments-git-regex.tar.gz |
all: convert "re" to "regex"regex
Diffstat (limited to 'tests')
-rw-r--r-- | tests/examplefiles/ezhil/ezhil_primefactors.n.output | 8 | ||||
-rw-r--r-- | tests/test_cmdline.py | 3 | ||||
-rw-r--r-- | tests/test_html_formatter.py | 3 | ||||
-rw-r--r-- | tests/test_pangomarkup_formatter.py | 2 | ||||
-rw-r--r-- | tests/test_regexopt.py | 3 | ||||
-rw-r--r-- | tests/test_terminal_formatter.py | 3 | ||||
-rw-r--r-- | tests/test_unistring.py | 3 |
7 files changed, 15 insertions, 10 deletions
diff --git a/tests/examplefiles/ezhil/ezhil_primefactors.n.output b/tests/examplefiles/ezhil/ezhil_primefactors.n.output index fdca731c..87f4e27b 100644 --- a/tests/examplefiles/ezhil/ezhil_primefactors.n.output +++ b/tests/examplefiles/ezhil/ezhil_primefactors.n.output @@ -345,7 +345,7 @@ ' ' Text.Whitespace '=' Operator ' ' Text.Whitespace -'பட்டியல்' Name +'பட்டியல்' Name.Builtin '(' Punctuation ')' Punctuation '\n' Text @@ -457,7 +457,7 @@ '\n' Text ' ' Text.Whitespace -'பின்இணை' Name +'பின்இணை' Name.Builtin '(' Punctuation 'கூறுகள்' Name ',' Operator @@ -586,7 +586,7 @@ '\n' Text ' ' Text.Whitespace -'பின்இணை' Name +'பின்இணை' Name.Builtin '(' Punctuation 'கூறுகள்' Name ',' Operator @@ -723,7 +723,7 @@ ' ' Text.Whitespace '=' Operator ' ' Text.Whitespace -'பட்டியல்' Name +'பட்டியல்' Name.Builtin '(' Punctuation ')' Punctuation '\n' Text diff --git a/tests/test_cmdline.py b/tests/test_cmdline.py index c05fd01a..a0f28002 100644 --- a/tests/test_cmdline.py +++ b/tests/test_cmdline.py @@ -8,12 +8,13 @@ import io import os -import re import sys import tempfile from io import BytesIO from os import path +import regex as re + import pytest from pytest import raises diff --git a/tests/test_html_formatter.py b/tests/test_html_formatter.py index e1a02b24..541ccf06 100644 --- a/tests/test_html_formatter.py +++ b/tests/test_html_formatter.py @@ -7,11 +7,12 @@ """ import os -import re import tempfile from io import StringIO from os import path +import regex as re + import pytest from pygments.formatters import HtmlFormatter, NullFormatter diff --git a/tests/test_pangomarkup_formatter.py b/tests/test_pangomarkup_formatter.py index e4685466..4152ccba 100644 --- a/tests/test_pangomarkup_formatter.py +++ b/tests/test_pangomarkup_formatter.py @@ -6,7 +6,7 @@ :license: BSD, see LICENSE for details. """ -import re +import regex as re from pygments import highlight from pygments.formatters import PangoMarkupFormatter diff --git a/tests/test_regexopt.py b/tests/test_regexopt.py index 2116467e..e459066e 100644 --- a/tests/test_regexopt.py +++ b/tests/test_regexopt.py @@ -6,10 +6,11 @@ :license: BSD, see LICENSE for details. """ -import re import random from itertools import combinations_with_replacement +import regex as re + from pygments.regexopt import regex_opt ALPHABET = ['a', 'b', 'c', 'd', 'e'] diff --git a/tests/test_terminal_formatter.py b/tests/test_terminal_formatter.py index c1a7ec7b..6e936e7b 100644 --- a/tests/test_terminal_formatter.py +++ b/tests/test_terminal_formatter.py @@ -6,9 +6,10 @@ :license: BSD, see LICENSE for details. """ -import re from io import StringIO +import regex as re + from pygments.lexers.sql import PlPgsqlLexer from pygments.formatters import TerminalFormatter, Terminal256Formatter, \ HtmlFormatter, LatexFormatter diff --git a/tests/test_unistring.py b/tests/test_unistring.py index 65fb1fc5..03f4b89a 100644 --- a/tests/test_unistring.py +++ b/tests/test_unistring.py @@ -6,9 +6,10 @@ :license: BSD, see LICENSE for details. """ -import re import random +import regex as re + from pygments import unistring as uni |