Skip to content

Commit

Permalink
Fix CI for Python 3.13 on Windows
Browse files Browse the repository at this point in the history
- Why the difference in behavior on the different platforms.
  • Loading branch information
metatoaster committed Oct 17, 2024
1 parent 5b7ba09 commit 59e61b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,7 @@ streams:
>>> print(h4_program_min.read())
var b=function(a){return'<b>'+a+'</b>';};var a=function(a){...};
//# sourceMappingURL=html4.min.js.map
...
For a simple concatenation of multiple sources into one file, along with
inline source map (i.e. where the sourceMappingURL is a ``data:`` URL of
Expand Down
5 changes: 4 additions & 1 deletion src/calmjs/parse/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import doctest
from textwrap import dedent
from io import StringIO
from os.path import basename
from os.path import dirname
from pkg_resources import get_distribution

Expand Down Expand Up @@ -38,7 +39,9 @@ def make_suite(): # pragma: no cover

def open(p, flag='r'):
result = StringIO(examples[p] if flag == 'r' else '')
result.name = p
# Need basename here because Python 3.13 under Windows broke
# _something_ and made the reporting inconsistent...
result.name = basename(p)
return result

parser = doctest.DocTestParser()
Expand Down

0 comments on commit 59e61b0

Please sign in to comment.