Skip to content

Commit

Permalink
Add regression test for old-division and floats. Close #3039
Browse files Browse the repository at this point in the history
  • Loading branch information
PCManticore committed Sep 24, 2019
1 parent 3e1f61d commit d23a16e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
3 changes: 3 additions & 0 deletions tests/functional/o/old_division_floats.py
@@ -0,0 +1,3 @@
from __future__ import print_function

print(float(1) / 2)
3 changes: 3 additions & 0 deletions tests/functional/o/old_division_floats.rc
@@ -0,0 +1,3 @@
[Messages Control]
disable=all
enable=old-division
5 changes: 3 additions & 2 deletions tests/functional/o/old_division_manually.py
@@ -1,2 +1,3 @@
from __future__ import division
print 1 / 3
from __future__ import division, print_function

print(1 / 3)
5 changes: 1 addition & 4 deletions tests/functional/o/old_division_manually.rc
@@ -1,6 +1,3 @@
[testoptions]
max_pyver=3.0

[Messages Control]
disable=all
enable=old-division
enable=old-division

0 comments on commit d23a16e

Please sign in to comment.