[Python-modules-commits] [python-requests-cache] 02/07: Don't force usage of toplevel dir to run tests

Sandro Tosi morph at moszumanska.debian.org
Mon Apr 25 21:32:23 UTC 2016


This is an automated email from the git hooks/post-receive script.

morph pushed a commit to branch master
in repository python-requests-cache.

commit ec99de0ad75323054d1091aee55feed57ad5a4b0
Author: Sandro Tosi <morph at debian.org>
Date:   Thu Oct 8 13:02:24 2015 -0700

    Don't force usage of toplevel dir to run tests
    
    Origin: vendor
    Forwarded: no
    Last-Update: 2015-04-11
    Patch-Name: tests_dont_import_toplevel_dir.patch
---
 tests/test_cache.py         | 1 -
 tests/test_custom_dict.py   | 1 -
 tests/test_dbdict.py        | 1 -
 tests/test_mongodict.py     | 1 -
 tests/test_monkey_patch.py  | 1 -
 tests/test_redisdict.py     | 1 -
 tests/test_thread_safety.py | 1 -
 7 files changed, 7 deletions(-)

diff --git a/tests/test_cache.py b/tests/test_cache.py
index 31dd671..8198d46 100644
--- a/tests/test_cache.py
+++ b/tests/test_cache.py
@@ -2,7 +2,6 @@
 # -*- coding: utf-8 -*-
 # Path hack
 import os, sys
-sys.path.insert(0, os.path.abspath('..'))
 
 try:
     import unittest2 as unittest
diff --git a/tests/test_custom_dict.py b/tests/test_custom_dict.py
index f146d79..0af3d21 100644
--- a/tests/test_custom_dict.py
+++ b/tests/test_custom_dict.py
@@ -2,7 +2,6 @@
 # -*- coding: utf-8 -*-
 # Path hack
 import os, sys
-sys.path.insert(0, os.path.abspath('..'))
 
 from requests_cache.backends.storage.dbdict import DbDict, DbPickleDict
 
diff --git a/tests/test_dbdict.py b/tests/test_dbdict.py
index 04987ee..8ce7af9 100644
--- a/tests/test_dbdict.py
+++ b/tests/test_dbdict.py
@@ -2,7 +2,6 @@
 # -*- coding: utf-8 -*-
 # Path hack
 import os, sys
-sys.path.insert(0, os.path.abspath('..'))
 
 try:
     import unittest2 as unittest
diff --git a/tests/test_mongodict.py b/tests/test_mongodict.py
index bd7f49e..67aafb7 100644
--- a/tests/test_mongodict.py
+++ b/tests/test_mongodict.py
@@ -2,7 +2,6 @@
 # -*- coding: utf-8 -*-
 # Path hack
 import os, sys
-sys.path.insert(0, os.path.abspath('..'))
 
 try:
     import unittest2 as unittest
diff --git a/tests/test_monkey_patch.py b/tests/test_monkey_patch.py
index 596544b..f7167cf 100644
--- a/tests/test_monkey_patch.py
+++ b/tests/test_monkey_patch.py
@@ -2,7 +2,6 @@
 # -*- coding: utf-8 -*-
 # Path hack
 import os, sys
-sys.path.insert(0, os.path.abspath('..'))
 
 try:
     import unittest2 as unittest
diff --git a/tests/test_redisdict.py b/tests/test_redisdict.py
index 6dce788..a8013cb 100644
--- a/tests/test_redisdict.py
+++ b/tests/test_redisdict.py
@@ -2,7 +2,6 @@
 # -*- coding: utf-8 -*-
 # Path hack
 import os, sys
-sys.path.insert(0, os.path.abspath('..'))
 
 try:
     import unittest2 as unittest
diff --git a/tests/test_thread_safety.py b/tests/test_thread_safety.py
index 3b90e67..0b9f226 100644
--- a/tests/test_thread_safety.py
+++ b/tests/test_thread_safety.py
@@ -2,7 +2,6 @@
 # -*- coding: utf-8 -*-
 # Path hack
 import os, sys
-sys.path.insert(0, os.path.abspath('..'))
 
 try:
     import unittest2 as unittest

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-requests-cache.git



More information about the Python-modules-commits mailing list