Skip to content

Commit

Permalink
[#375] Fix python compatibility warnings tests on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Mi-La committed Mar 3, 2022
1 parent da77085 commit f70f697
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/utils/python/testutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ def getZserioApi(testFile, mainZsFile, *, hasPackage=True, hasApi=True, topLevel
if topLevelPackage is not None:
apiModulePathPrefix = topLevelPackage.split(".")[0]
else:
mainZsWithoutExt = os.path.splitext(mainZsFile)[0]
mainZsWithoutExt.replace("/", os.sep) # normalize mainZs path for current OS
# normalize mainZs path for current OS
mainZsWithoutExt = os.path.splitext(mainZsFile)[0].replace("/", os.sep)
apiModulePathPrefix = mainZsWithoutExt.split(os.sep)[0]

apiModule = apiModulePathPrefix + "." + apiModule
Expand Down

0 comments on commit f70f697

Please sign in to comment.