• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sigasi / SigasiProjectCreator / 45
75%

Build:
DEFAULT BRANCH: master
Ran 08 Jul 2020 08:35AM UTC
Jobs 2
Files 13
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
45

push

travis-ci

web-flow
Make tests compatible with Python 3 (#20)

* Convert implicit relative imports to explicit relative imports

* Update tests to be compatible with both Python 2 and Python 3

Conversions include:
  - dict() key iteration: iteritems() in py2 -> items() in both py2 and py3
  - read() return val: str in py2, byte str in py3 -> explicit decode in both py2 and py3
  - Exception __contains__: comparison to repr / str in py2, not existent in py3 -> explicit str conversion in both py2 and py3

* Change imports to absolute imports

The scripts in the src/SigasiProjectCreator package are not compatible with explicit relative imports. This is because relative imports use the __name__ attribute to resolve modules. The __name__ attribute of a module which is run as a main script is set to "__main__", this breaks the relative imports used in the modules imported by the main script.
Another issue arose when updating the imports; the package contained a module with the same name (SigasiProjectCreator). The syntax for importing packages and modules in Python is similar, the clashing names caused issues in the imports. To fix this, the SigasiProjectCreator.py was renamed to Creator.py.

* Make tests work on Windows

Some test were failing on Windows because of issues with newlines (fixed by binary writing mode + encode) and because of illegal directory removal (fixed by restoring working directory after test).

* Fix invalid escape sequence warning

* Add Python 3.8 to .travis.yml and add note in README about compatible versions

* Use ConfigParser instead of deprecated SafeConfigParser

273 of 332 relevant lines covered (82.23%)

1.64 hits per line

Jobs
ID Job ID Ran Files Coverage
1 45.1 08 Jul 2020 08:35AM UTC 0
82.28
Travis Job 45.1
2 45.2 08 Jul 2020 08:35AM UTC 0
82.23
Travis Job 45.2
Source Files on build 45
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #45
  • 0a14c076 on github
  • Prev Build on master (#42)
  • Next Build on master (#46)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc