diff options
author | Alexandru Coman <acoman@cloudbasesolutions.com> | 2016-07-14 23:50:29 +0300 |
---|---|---|
committer | Alexandru Coman <acoman@cloudbasesolutions.com> | 2016-07-14 23:52:00 +0300 |
commit | abebffc95ec6441ad6388d3afb815f14a200237c (patch) | |
tree | c39ea9cc95fcd150bfced24d1adaa2e5a57732b5 /oslo_db/tests/sqlalchemy/test_sqlalchemy.py | |
parent | 673f27b0e88bbe69b47b10fdc0fd6f1f353c66ae (diff) | |
download | oslo-db-abebffc95ec6441ad6388d3afb815f14a200237c.tar.gz |
Fixed unit tests running on Windows
Replaced all slashes in the paths with os.path.join,
so that they are compatible with Windows and Linux.
Change-Id: I65665a0f109d60b7a3e4187dd3c9409151d04ec7
Diffstat (limited to 'oslo_db/tests/sqlalchemy/test_sqlalchemy.py')
-rw-r--r-- | oslo_db/tests/sqlalchemy/test_sqlalchemy.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/oslo_db/tests/sqlalchemy/test_sqlalchemy.py b/oslo_db/tests/sqlalchemy/test_sqlalchemy.py index ceb2afe..6f327d6 100644 --- a/oslo_db/tests/sqlalchemy/test_sqlalchemy.py +++ b/oslo_db/tests/sqlalchemy/test_sqlalchemy.py @@ -18,6 +18,7 @@ """Unit tests for SQLAlchemy specific code.""" import logging +import os import fixtures import mock @@ -719,4 +720,5 @@ class PatchStacktraceTest(test_base.DbTestCase): call = mock_exec.mock_calls[0] # we're the caller, see that we're in there - self.assertIn("tests/sqlalchemy/test_sqlalchemy.py", call[1][1]) + caller = os.path.join("tests", "sqlalchemy", "test_sqlalchemy.py") + self.assertIn(caller, call[1][1]) |