Skip to content

Commit e3c90ce

Browse files
committed
Fix ruff and license header issues
1 parent 451dfee commit e3c90ce

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

testing/qumat/test_qdp_module.py

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one or more
3+
# contributor license agreements. See the NOTICE file distributed with
4+
# this work for additional information regarding copyright ownership.
5+
# The ASF licenses this file to You under the Apache License, Version 2.0
6+
# (the "License"); you may not use this file except in compliance with
7+
# the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
117
import sys
218
import builtins
319
import pytest
@@ -24,7 +40,7 @@ def fake_import(name, *args, **kwargs):
2440
monkeypatch.setattr(builtins, "__import__", fake_import)
2541

2642
with pytest.warns(ImportWarning):
27-
import qumat.qdp
43+
pass
2844

2945

3046
def test_qdp_engine_stub_raises_import_error():
@@ -57,4 +73,4 @@ def test_make_stub_direct_call():
5773
StubClass = qdp._make_stub("TestStub")
5874

5975
with pytest.raises(ImportError):
60-
StubClass()
76+
StubClass()

0 commit comments

Comments
 (0)