diff options
author | Anteru <bitbucket@ca.sh13.net> | 2018-12-16 16:41:41 +0000 |
---|---|---|
committer | Anteru <bitbucket@ca.sh13.net> | 2018-12-16 16:41:41 +0000 |
commit | 9604223f168753dd73531d6b53ec302331de61e6 (patch) | |
tree | 1fac0eba317c0fda938f6e90b0222db5d167f0e2 /tests/run.py | |
parent | 64047332da7a0a5d574824b070caa90b39518047 (diff) | |
parent | 96933283e66f789e09332e7216e7e6e4519845f5 (diff) | |
download | pygments-9604223f168753dd73531d6b53ec302331de61e6.tar.gz |
Merged in natashawatkins/pygments-main/natashawatkins/julia-06 (pull request #728)
Add julia 0.6 language features to julia.py
Approved-by: joshday <emailjoshday@gmail.com>
Approved-by: Mykel Kochenderfer <mykel@stanford.edu>
Diffstat (limited to 'tests/run.py')
-rw-r--r-- | tests/run.py | 8 |
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 |