Skip to content

Commit

Permalink
Regex error fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
spranav1205 committed Sep 19, 2024
1 parent efefb48 commit e5f0653
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions stingray/pulse/tests/test_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@ def test_plot_phaseogram_direct(self):

def test_search_wrong_key_fails(self):
with pytest.raises(
ValueError,
match="Unidentified keyword(s) to fold_events: fdot, fddot \n Please refer to the description of the function for optional parameters.",
ValueError, match=r"Unidentified keyword\(s\) to fold_events: fdot, fddot"
):
phase, prof, _ = fold_events(self.event_times, self.pulse_frequency, fdot=12, fddot=34)

Expand Down

0 comments on commit e5f0653

Please # to comment.