1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
|
From 565be33084677c557e1af816e423a9e2d63ddfe7 Mon Sep 17 00:00:00 2001
From: Sandro Tosi <morph@debian.org>
Date: Thu, 8 Oct 2015 13:02:24 -0700
Subject: 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 a647895..24a6e05 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
|