Skip to content

Commit fc491de

Browse files
committed
Simplify test compatibility
1 parent 803c98a commit fc491de

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

tests/__init__.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,2 @@
11
# -*- coding: utf-8 -*-
2-
import sys
32

4-
if sys.version_info[:2] < (2, 7):
5-
import unittest2 as unittest
6-
else:
7-
import unittest

tests/test_libcomxml.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# -*- coding: utf-8 -*-
2-
from . import unittest
2+
import sys
3+
4+
if sys.version_info[:2] < (2, 7):
5+
import unittest2 as unittest
6+
else:
7+
import unittest
38
import locale
49
import re
510
from libcomxml.core import XmlField, XmlModel, clean_xml

0 commit comments

Comments
 (0)