Skip to content

Commit 055e9d6

Browse files
authored
Merge pull request #135 from bnavigator/fix-windows-xerbla-test
better samefile assertion for test_xerbla_override
2 parents 511529c + ee91d27 commit 055e9d6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

slycot/tests/test_exceptions.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
docstring_check.py
2+
test_exceptions.py
33
44
Copyright 2020 Slycot team
55
@@ -18,10 +18,12 @@
1818
MA 02110-1301, USA.
1919
"""
2020

21-
import pytest
21+
import os
2222
import subprocess
2323
import sys
2424

25+
import pytest
26+
2527
from slycot.exceptions import raise_if_slycot_error, \
2628
SlycotError, SlycotWarning, SlycotParameterError
2729
from slycot import _wrapper
@@ -119,5 +121,5 @@ def test_xerbla_override():
119121

120122
outlines = out.splitlines()
121123
assert len(outlines) == 2
122-
assert outlines[0] == _wrapper.__file__
124+
assert os.path.samefile(outlines[0], _wrapper.__file__)
123125
assert outlines[1] == "INFO=-1"

0 commit comments

Comments
 (0)