Towerism / googletest

Automatically exported from code.google.com/p/googletest
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Errors running Make with Python 3 #434

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install Python 3.
2. Attempt to run 'make', which throws syntax errors in ./scripts/*.py.

What is the expected output? What do you see instead?
Expected it to use compile cleanly using Python 2, not the newer system default.

What version of Google Test are you using? On what operating system?
gtest-1.6.0, Arch Linux

Original issue reported on code.google.com by egt...@gmail.com on 19 May 2013 at 5:49

GoogleCodeExporter commented 9 years ago
The same issue here. When building **gtest** from source everything compiles 
well but script **gtest/scripts/fuse_gtest_files.py** fails due to use of 
*print* keyword. Suggested solution is to either change first line from 
``#!/usr/bin/env python`` to ``#!/usr/bin/python2`` or change all *print* 
keywords to functions.

**What steps will reproduce the problem?**
Install Python3 as main python interpreter and build gtest from source.

**What version of Google Test are you using? On what operating system?**
gtest-1.6.0, Linux 3.10.4

Original comment by robin3d1...@gmail.com on 12 Aug 2013 at 7:07

GoogleCodeExporter commented 9 years ago
Attached patch adds python3 support to fuse_gtest_files.py (
sets.Set->set, file->open, print correction).

This issue is also valid for gtest-1.7.0.

Original comment by dariusz....@gmail.com on 23 Sep 2013 at 11:33

Attachments: