forked from pymodbus-dev/pymodbus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Make tests having yield from only with Python 3
If Python is older than 3.3, "yield from" will be SyntaxError like PR riptideio#400 with "SyntaxError: invalid syntax" [1]. It is defined in PEP 380 -- Syntax for Delegating to a Subgenerator [2]: __import__(modname) E File "/home/travis/build/riptideio/pymodbus/test/test_server_asyncio.py", line 74 E server = yield from StartTcpServer(context=self.context,loop=self.loop,identity=identity) E ^ E SyntaxError: invalid syntax This patch skips the tests if they are not in Python 3. [1] https://travis-ci.org/riptideio/pymodbus/jobs/584493268 [2] https://www.python.org/dev/peps/pep-0380/
- Loading branch information
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters