15
0

- Update to 2.3.1:

* Update lexers
  * Minimum Python versions changed to 2.7 and 3.5
  *  Added support for Python 3.7 generator changes (PR#772)
  * Fix incorrect token type in SCSS for single-quote strings (#1322)
  * Use `terminal256` formatter if `TERM` contains `256` (PR#666)
  * Fix incorrect handling of GitHub style fences in Markdown (PR#741, #1389)
  * Fix `%a` not being highlighted in Python3 strings (PR#727)
- Drop patch python_37.diff which was merged upstream
- Refresh patch denose.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pygments?expand=0&rev=50
This commit is contained in:
Tomáš Chvátal
2019-02-11 11:15:42 +00:00
committed by Git OBS Bridge
parent 3318ee464e
commit 2cc7d8a540
6 changed files with 40 additions and 51 deletions

View File

@@ -1,14 +1,17 @@
--- a/tests/run.py
+++ b/tests/run.py
@@ -16,18 +16,13 @@ from __future__ import print_function
Index: Pygments-2.3.1/tests/run.py
===================================================================
--- Pygments-2.3.1.orig/tests/run.py
+++ Pygments-2.3.1/tests/run.py
@@ -17,6 +17,7 @@ from __future__ import print_function
import os
import sys
import warnings
+import unittest
# only find tests in this directory
if os.path.dirname(__file__):
os.chdir(os.path.dirname(__file__))
@@ -30,12 +31,6 @@ warnings.filterwarnings("error", module=
category=DeprecationWarning)
-try:
@@ -20,14 +23,16 @@
# make sure the current source is first on sys.path
sys.path.insert(0, '..')
@@ -47,4 +42,4 @@ else:
@@ -55,4 +50,4 @@ else:
print('Pygments test suite running (Python %s)...' % sys.version.split()[0],
file=sys.stderr)
-nose.main()
+unittest.main()
--- a/tests/support.py
+++ b/tests/support.py
Index: Pygments-2.3.1/tests/support.py
===================================================================
--- Pygments-2.3.1.orig/tests/support.py
+++ Pygments-2.3.1/tests/support.py
@@ -5,7 +5,7 @@ Support for Pygments tests
import os
@@ -37,8 +42,10 @@
def location(mod_name):
--- a/tests/test_cmdline.py
+++ b/tests/test_cmdline.py
Index: Pygments-2.3.1/tests/test_cmdline.py
===================================================================
--- Pygments-2.3.1.orig/tests/test_cmdline.py
+++ Pygments-2.3.1/tests/test_cmdline.py
@@ -143,7 +143,7 @@ class CmdLineTest(unittest.TestCase):
def test_h_opt(self):
@@ -202,7 +209,9 @@
# same with -v: should reraise the exception
try:
Index: Pygments-2.3.1/tests/__init__.py
===================================================================
--- /dev/null
+++ b/tests/__init__.py
+++ Pygments-2.3.1/tests/__init__.py
@@ -0,0 +1 @@
+