Skip to content

Commit

Permalink
ignore lxml 5.0.0 until 5.0.1 is out
Browse files Browse the repository at this point in the history
  • Loading branch information
nabobalis committed Jan 4, 2024
1 parent 6156693 commit afeee63
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ image =
scipy>=1.7.0,!=1.10.0
jpeg2000 =
glymur>=0.9.1,!=0.9.5
lxml>=4.8.0
lxml>=4.8.0,!=5.0.0
map =
matplotlib>=3.5.0
mpl-animators>=1.0.0
Expand Down
12 changes: 6 additions & 6 deletions sunpy/net/tests/strategies.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Provide a set of Hypothesis Strategies for various Fido related tests.
"""
from datetime import datetime, timezone
import datetime

import hypothesis.strategies as st
import numpy as np
Expand Down Expand Up @@ -74,8 +74,8 @@ def online_instruments():

@st.composite
def time_attr(draw, time=Times(
max_value=datetime(datetime.now(timezone.utc).year, 1, 1, 0, 0),
min_value=datetime(1981, 1, 1, 0, 0)),
max_value=datetime.datetime(datetime.datetime.now(datetime.timezone.utc).year, 1, 1, 0, 0),
min_value=datetime.datetime(1981, 1, 1, 0, 0)),
delta=TimeDelta()):
"""
Create an a.Time where it's always positive.
Expand All @@ -90,8 +90,8 @@ def time_attr(draw, time=Times(

@st.composite
def goes_time(draw, time=Times(
max_value=datetime(datetime.now(timezone.utc).year, 1, 1, 0, 0),
min_value=datetime(1981, 1, 1, 0, 0)),
max_value=datetime.datetime(datetime.datetime.now(datetime.timezone.utc).year, 1, 1, 0, 0),
min_value=datetime.datetime(1981, 1, 1, 0, 0)),
delta=TimeDelta()):
"""
Create an a.Time where it's always positive.
Expand All @@ -116,7 +116,7 @@ def goes_time(draw, time=Times(

@st.composite
def srs_time(draw, time=Times(
max_value=datetime.datetime.now(),
max_value=datetime.datetime.now(datetime.timezone.utc),
min_value=datetime.datetime(1996, 1, 1)),
delta=TimeDelta()):
t1 = draw(time)
Expand Down

0 comments on commit afeee63

Please sign in to comment.