Skip to content

Commit 17df006

Browse files
committed
unittest2 for run_tests.py
1 parent 490662b commit 17df006

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

run_tests.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44

55
from __future__ import absolute_import, division, print_function, with_statement
66

7-
import unittest
7+
try:
8+
import unittest2 as unittest
9+
except ImportError: # Python 2.7
10+
import unittest
811
import sys
912
import os
1013
import argparse

0 commit comments

Comments
 (0)