diff options
| author | Oz Linden <oz@lindenlab.com> | 2013-03-04 13:33:23 -0500 | 
|---|---|---|
| committer | Oz Linden <oz@lindenlab.com> | 2013-03-04 13:33:23 -0500 | 
| commit | e0d8170e919a2669703be40d2cbb00163577d909 (patch) | |
| tree | 9ca5fa0721e5405a29e4da54080949281186a3ea /indra/llcommon | |
| parent | 65e4ea3e28446585e8a36db9b06edb457b3de7f4 (diff) | |
import fix for python sys.path in integration tests
Diffstat (limited to 'indra/llcommon')
| -rw-r--r-- | indra/llcommon/tests/llleap_test.cpp | 9 | ||||
| -rw-r--r-- | indra/llcommon/tests/llsdserialize_test.cpp | 5 | 
2 files changed, 4 insertions, 10 deletions
| diff --git a/indra/llcommon/tests/llleap_test.cpp b/indra/llcommon/tests/llleap_test.cpp index 9b755e9ca5..29060d4ef5 100644 --- a/indra/llcommon/tests/llleap_test.cpp +++ b/indra/llcommon/tests/llleap_test.cpp @@ -122,13 +122,10 @@ namespace tut                     // finding indra/lib/python. Use our __FILE__, with                     // raw-string syntax to deal with Windows pathnames.                     "mydir = os.path.dirname(r'" << __FILE__ << "')\n" -                   "try:\n" -                   "    from llbase import llsd\n" -                   "except ImportError:\n"                     // We expect mydir to be .../indra/llcommon/tests. -                   "    sys.path.insert(0,\n" -                   "        os.path.join(mydir, os.pardir, os.pardir, 'lib', 'python'))\n" -                   "    from indra.base import llsd\n" +                   "sys.path.insert(0,\n" +                   "    os.path.join(mydir, os.pardir, os.pardir, 'lib', 'python'))\n" +                   "from indra.base import llsd\n"                     "\n"                     "class ProtocolError(Exception):\n"                     "    def __init__(self, msg, data):\n" diff --git a/indra/llcommon/tests/llsdserialize_test.cpp b/indra/llcommon/tests/llsdserialize_test.cpp index e625545763..4d436e8897 100644 --- a/indra/llcommon/tests/llsdserialize_test.cpp +++ b/indra/llcommon/tests/llsdserialize_test.cpp @@ -1523,10 +1523,7 @@ namespace tut                          "sys.path.insert(0,\n"                          "    os.path.join(os.path.dirname(r'" __FILE__ "'),\n"                          "                 os.pardir, os.pardir, 'lib', 'python'))\n" -                        "try:\n" -                        "    from llbase import llsd\n" -                        "except ImportError:\n" -                        "    from indra.base import llsd\n") +                        "from indra.base import llsd\n")          {}          ~TestPythonCompatible() {} | 
