Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
thrasibule committed Nov 22, 2023
1 parent a165d1a commit 8851c01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion test/test_cython_bug.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ from quantlib.types cimport Integer, Natural, Rate, Real
from cython.operator cimport dereference as deref
from libcpp.vector cimport vector

from quantlib.instruments._bonds cimport FixedRateBond
from quantlib.instruments.bonds._fixedratebond cimport FixedRateBond
from quantlib.time._date cimport (
Date as QlDate, todaysDate, Jul, August, September, endOfMonth
)
Expand All @@ -16,6 +16,7 @@ from quantlib.time.calendars._target cimport TARGET
from quantlib.time._schedule cimport Schedule
from quantlib.time.dategeneration cimport DateGeneration
from quantlib.time.date cimport date_from_qldate, Date
from quantlib.time._daycounter cimport DayCounter
from quantlib.time.daycounters._actual_actual cimport ActualActual
from quantlib.time.daycounters.actual_actual cimport Convention

Expand Down Expand Up @@ -92,6 +93,7 @@ cdef FixedRateBond* get_bond_for_evaluation_date(QlDate& in_date):
Calendar(),
Unadjusted,
False,
DayCounter()
)

return bond
Expand Down
2 changes: 1 addition & 1 deletion test/test_inflation.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from quantlib.time.api import ( UnitedKingdom, ModifiedFollowing, ActualActual,
Schedule, Actual365Fixed, Unadjusted )
from quantlib.time.dategeneration import DateGeneration
from quantlib.instruments.bonds import CPIBond, InterpolationType
from quantlib.instruments.bonds.cpibond import CPIBond, InterpolationType
from quantlib.pricingengines.bond import DiscountingBondEngine
from quantlib.settings import Settings
from quantlib.termstructures.inflation_term_structure import \
Expand Down

0 comments on commit 8851c01

Please sign in to comment.