chiark
/
gitweb
/
~cjwatson
/
blog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54290c2
)
m.math: test only on Python 3.5+.
author
Vladimír Vondruš
<mosra@centrum.cz>
Mon, 11 Dec 2017 14:24:52 +0000
(15:24 +0100)
committer
Vladimír Vondruš
<mosra@centrum.cz>
Mon, 11 Dec 2017 15:18:10 +0000
(16:18 +0100)
pelican-plugins/m/test/test_math.py
patch
|
blob
|
history
diff --git
a/pelican-plugins/m/test/test_math.py
b/pelican-plugins/m/test/test_math.py
index 91894afaa2bf3dfd2ff7e59667e8d36533524328..961213d7d6ab66d194a70a9b3b1fbb42d358a14e 100644
(file)
--- a/
pelican-plugins/m/test/test_math.py
+++ b/
pelican-plugins/m/test/test_math.py
@@
-1,9
+1,16
@@
+import sys
+import unittest
+
+from distutils.version import LooseVersion
+
from m.test import PluginTestCase
class Math(PluginTestCase):
def __init__(self, *args, **kwargs):
super().__init__(__file__, '', *args, **kwargs)
+ @unittest.skipUnless(LooseVersion(sys.version) >= LooseVersion("3.5"),
+ "The math plugin requires at least Python 3.5")
def test(self):
self.run_pelican({
'PLUGINS': ['m.htmlsanity', 'm.math']