Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit 1885074

Browse files
committed
Fix build in Python 2.6.
1 parent a44d15b commit 1885074

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@
1414
import os
1515
import os.path
1616
import tempfile
17-
import unittest
17+
try:
18+
import unittest2 as unittest # for Python 2.6
19+
except ImportError:
20+
import unittest
1821

1922
try:
2023
import yaml

0 commit comments

Comments
 (0)