summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2015-08-11 21:37:15 +0200
committerJan Pokorný <jpokorny@redhat.com>2015-08-11 23:29:43 +0200
commitc5f61038417e3877a1483efbcc3266643d8aa42c (patch)
tree63a7905a16f2c85dbcf5175043f0f0ff4f37d11b
parentacef7d1db5cb074e7aa618e2425ca95c0541a8b2 (diff)
downloadclufter-c5f61038417e3877a1483efbcc3266643d8aa42c.tar.gz
clufter-c5f61038417e3877a1483efbcc3266643d8aa42c.tar.xz
clufter-c5f61038417e3877a1483efbcc3266643d8aa42c.zip
tests/_common.py, import -> tests/_com, execfile
Preparing ground for nested test and unittest not playing well with symlinked _common.py in such the respective nested directory. Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rw-r--r--tests/_com (renamed from tests/_common.py)0
-rw-r--r--tests/ccs2coroxml.py6
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/_common.py b/tests/_com
index a4b4e96..a4b4e96 100644
--- a/tests/_common.py
+++ b/tests/_com
diff --git a/tests/ccs2coroxml.py b/tests/ccs2coroxml.py
index 1781c23..5e9854a 100644
--- a/tests/ccs2coroxml.py
+++ b/tests/ccs2coroxml.py
@@ -1,13 +1,13 @@
# -*- coding: UTF-8 -*-
-# Copyright 2014 Red Hat, Inc.
+# Copyright 2015 Red Hat, Inc.
# Part of clufter project
# Licensed under GPLv2+ (a copy included | http://gnu.org/licenses/gpl-2.0.txt)
"""Testing ccs2coro filter(s)"""
__author__ = "Jan Pokorný <jpokorny @at@ Red Hat .dot. com>"
-from os.path import dirname, join
+from os.path import join, dirname as d; execfile(join(d((__file__)), '_com'))
-from _common import CommonFilterTestCase
+from os.path import dirname, join
class Main(CommonFilterTestCase):