Commit ba1cdb93 authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

fixing bug in tests when xacc-py is not available


Signed-off-by: Mccaskey, Alex's avatarAlex McCaskey <mccaskeyaj@ornl.gov>
parent 534a8a94
......@@ -23,7 +23,7 @@ TEST(ImprovedSamplingDecoratorTester, checkSimple) {
int shots = 8192;
int nExecs = 4;
if (xacc::hasAccelerator("local-ibm")) {
if (xacc::hasAccelerator("local-ibm") && xacc::hasCompiler("xacc-py")) {
auto acc = xacc::getAccelerator("local-ibm");
auto buffer = acc->createBuffer("buffer", 2);
......@@ -58,7 +58,7 @@ TEST(ImprovedSamplingDecoratorTester, checkMultiple) {
int shots = 8192;
int nExecs = 2;
if (xacc::hasAccelerator("local-ibm")) {
if (xacc::hasAccelerator("local-ibm") && xacc::hasCompiler("xacc-py")) {
auto acc = xacc::getAccelerator("local-ibm");
auto buffer = acc->createBuffer("buffer", 2);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment