summaryrefslogtreecommitdiff
path: root/tests/run.py
diff options
context:
space:
mode:
authorAnteru <bitbucket@ca.sh13.net>2019-04-30 15:52:31 +0000
committerAnteru <bitbucket@ca.sh13.net>2019-04-30 15:52:31 +0000
commit28a21bdafa1b73d5515de18bd263797af61c2471 (patch)
tree3436c730359d89153f04ef572368abfcde1d3fcb /tests/run.py
parente3872ea8f65ac2c3c40046a7a3acf4f0541f0e56 (diff)
parent601e6e86e45f31e23a7b29e1265d68aeba5e1366 (diff)
downloadpygments-28a21bdafa1b73d5515de18bd263797af61c2471.tar.gz
Merged in andrescarrasco/pygments-main/boa (pull request #756)
Add a lexer for the Boa Domain-Specific Langauge.
Diffstat (limited to 'tests/run.py')
-rw-r--r--tests/run.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/run.py b/tests/run.py
index 07665b2a..2e962f2f 100644
--- a/tests/run.py
+++ b/tests/run.py
@@ -16,11 +16,19 @@ from __future__ import print_function
import os
import sys
+import warnings
# only find tests in this directory
if os.path.dirname(__file__):
os.chdir(os.path.dirname(__file__))
+# make FutureWarnings (coming from Regex syntax most likely) and
+# DeprecationWarnings due to non-raw strings an error
+warnings.filterwarnings("error", module=r"pygments\..*",
+ category=FutureWarning)
+warnings.filterwarnings("error", module=r".*pygments.*",
+ category=DeprecationWarning)
+
try:
import nose